.admin-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    height: 40px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark);
    color: white;
    padding: 20px 0;
    transition: all 0.3s;
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    gap: 10px;
}

.admin-sidebar-menu li a:hover,
.admin-sidebar-menu li a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.admin-sidebar-menu li a i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    padding: 30px;
    background-color: #f5f7fa;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #666;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--dark);
}

.stat-card .trend {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.trend.up {
    color: var(--success);
}

.trend.down {
    color: var(--danger);
}

.dashboard-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 0;
}

.recent-applicants {
    width: 100%;
    border-collapse: collapse;
}

.recent-applicants th,
.recent-applicants td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.recent-applicants th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.recent-applicants tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-reviewed {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-pending {
    background-color: #fff8e1;
    color: #ffa000;
}

.project-progress {
    margin-top: 20px;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-title {
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .admin-sidebar-menu li a span {
        display: none;
    }
    
    .admin-sidebar-menu li a i {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 10px 0;
    }
    
    .admin-sidebar-menu {
        display: flex;
        overflow-x: auto;
    }
    
    .admin-sidebar-menu li {
        flex: 0 0 auto;
    }
    
    .admin-sidebar-menu li a {
        padding: 10px 15px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .admin-sidebar-menu li a span {
        display: block;
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Check-in Page Specific Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 0;
}

.checkin-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.checkin-method {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.checkin-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.method-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.method-icon {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.method-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark);
}

.method-description {
    color: #666;
    margin-bottom: 20px;
}

.biometric-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.biometric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.biometric-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark);
}

.biometric-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    background-color: #e8f5e9;
    color: #388e3c;
    padding: 5px 10px;
    border-radius: 20px;
}

.biometric-status i {
    margin-right: 5px;
}

.biometric-display {
    height: 200px;
    background-color: #f5f7fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.biometric-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.biometric-instructions {
    color: #666;
    max-width: 300px;
    margin: 0 auto;
}

.checkin-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.manual-checkin {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.manual-checkin h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.recent-checkins {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark);
}

.checkin-table {
    width: 100%;
    border-collapse: collapse;
}

.checkin-table th,
.checkin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.checkin-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-checked-in {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-checked-out {
    background-color: #ffebee;
    color: #d32f2f;
}

.status-late {
    background-color: #fff8e1;
    color: #ffa000;
}

.status-absent {
    background-color: #f5f5f5;
    color: #616161;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .checkin-methods {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkin-buttons {
        flex-direction: column;
    }
    
    .checkin-buttons .btn {
        width: 100%;
    }
}


/* Attendance Page Specific Styles */
.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.attendance-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 0;
}

.attendance-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.attendance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #666;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--dark);
}

.stat-card .trend {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.trend.up {
    color: var(--success);
}

.trend.down {
    color: var(--danger);
}

.attendance-table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.attendance-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.attendance-table tr:hover {
    background-color: #f5f5f5;
}

.attendance-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-present {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-absent {
    background-color: #ffebee;
    color: #d32f2f;
}

.status-late {
    background-color: #fff8e1;
    color: #ffa000;
}

.status-leave {
    background-color: #e3f2fd;
    color: #1976d2;
}

.attendance-chart {
    height: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anomalies-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.anomaly-card {
    border-left: 4px solid var(--danger);
    padding-left: 15px;
    margin-bottom: 15px;
}

.anomaly-card h4 {
    margin-top: 0;
    color: var(--danger);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}        


/* Employee Stats Styles */
.employee-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.employee-stats .stat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.employee-stats .stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.employee-stats .stat-card .value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.employee-stats .stat-card .trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.employee-stats .stat-card .trend.up {
    color: #4CAF50;
}

.employee-stats .stat-card .trend.down {
    color: #F44336;
}

/* Employee Filters */
.employee-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.employee-filters .filter-group {
    flex: 1;
    min-width: 180px;
}

/* View Options */
.employee-view-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle button.active {
    background-color: var(--primary);
    color: white;
}

/* Progress Bar in Table */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container .progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    flex-grow: 1;
}

.progress-container .progress-bar > div {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
}

/* Performance Rating */
.performance-rating {
    color: #FFC107;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

/* Dropdown Menu Styles */
.menu-dropdown {
    position: relative;
}

.menu-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.menu-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.menu-dropdown.active .submenu {
    max-height: 500px; /* Adjust based on content */
}

.submenu li a {
    padding: 10px 15px;
    font-size: 13px;
}

.submenu li a i {
    width: 20px;
    text-align: center;
}