/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}
/* Header buttons container */
.header-buttons {
    display: flex;
    gap: 10px;
}
/* Dashboard button */
.btn-dashboard {
    background: none;
    border: none;
    color: #2ecc71;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-dashboard:hover {
    color: #27ae60;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}
/* Adjust header buttons container */
.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
/* Tooltip styling */
.header-buttons button {
    position: relative;
}

.header-buttons .tooltip {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    white-space: nowrap;
}

.header-buttons button:hover .tooltip {
    visibility: visible;
    opacity: 1;
}
/* Logout button */
.btn-logout {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.btn-logout:hover {
    color: #c0392b;
}

/* Settings button */
.btn-settings {
    background: none;
    border: none;
    color: #3498db;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.btn-settings:hover {
    color: #2980b9;
}
/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.login-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #2980b9;
}

/* DTR Page Styles */
.dtr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-settings {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #3498db;
    cursor: pointer;
}

.dtr-content {
    display: flex;
    gap: 2rem;
}

.left-column, .right-column {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.digital-clock {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
}

.time-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-time {
    padding: 1rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#time-in {
    background-color: #2ecc71;
    color: white;
}

#time-in:hover {
    background-color: #27ae60;
}

#time-out {
    background-color: #e74c3c;
    color: white;
}

#time-out:hover {
    background-color: #c0392b;
}

.history-list {
    margin-top: 1rem;
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.history-item:last-child {
    border-bottom: none;
}
.btn-time:disabled {
    cursor: not-allowed;
    background-color: #ccc !important;
}

.btn-time:disabled:hover {
    background-color: #ccc !important;
}
/*Modal Styles*/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
} */

/* .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
} */

.btn-save {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-save:hover {
    background-color: #2980b9;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.sidebar-header {
    padding: 0 1rem 1rem;
    border-bottom: 1px solid #34495e;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #34495e;
}

.sidebar-menu li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-menu li.active {
    background-color: #34495e;
}

.sidebar-menu li:hover:not(.active) {
    background-color: #3d566e;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f5f7fa;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-selector input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-add {
    padding: 0.75rem 1.5rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: #27ae60;
}

.content-body {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
table.dataTable {
    width: 100% !important;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-menu a {
    color: #333;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dtr-content {
        flex-direction: column;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}