/* ============================================
   PAYPRO PAYROLL SYSTEM - MAIN STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --secondary: #3498db;
    --accent: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #9b59b6;
    --bg-light: #f8f9fa;
    --bg-dark: #1e2a38;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    --border-color: #e0e6ed;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
    --sidebar-width: 260px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* ================= LOGIN PAGE ================= */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('C:/Users/hp/Pictures/Screenshots/Capture d\'écran_18-2-2026_20742_thumbs.dreamstime.com.jpegX');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Paper Money Animated Background */
.money-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bill {
    position: absolute;
    width: 100px;
    height: 50px;
    background: linear-gradient(135deg, #85bb65 0%, #5d8c3e 50%, #3d6b2f 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: float-bill 10s ease-in-out infinite;
}

.bill::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.bill::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.dollar-sign {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bill-amount {
    font-size: 1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bill-1 { left: 5%; animation-delay: 0s; animation-duration: 12s; }
.bill-2 { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.bill-3 { left: 35%; animation-delay: 4s; animation-duration: 11s; }
.bill-4 { left: 50%; animation-delay: 1s; animation-duration: 13s; }
.bill-5 { left: 65%; animation-delay: 3s; animation-duration: 12s; }
.bill-6 { left: 80%; animation-delay: 5s; animation-duration: 15s; }

@keyframes float-bill {
    0% {
        top: -15%;
        transform: rotate(0deg) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    25% {
        transform: rotate(15deg) translateX(20px);
    }
    50% {
        transform: rotate(-10deg) translateX(-15px);
    }
    75% {
        transform: rotate(5deg) translateX(10px);
    }
    95% {
        opacity: 1;
    }
    100% {
        top: 115%;
        transform: rotate(0deg) translateX(0);
        opacity: 0;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.85) 0%, rgba(44, 62, 80, 0.75) 50%, rgba(52, 73, 94, 0.85) 100%);
    z-index: 1;
}

/* Make login box appear above video */
.login-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.login-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.login-header .logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-header h2 {
    color: white;
    margin-bottom: 5px;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent) 0%, #1e8449 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d68910 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #8e44ad 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

.login-footer {
    text-align: center;
    padding: 0 30px 30px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ================= LAYOUT ================= */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand .logo {
    font-size: 1.8rem;
    color: var(--secondary);
}

.sidebar-brand span {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-section {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px 8px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: var(--secondary);
}

.menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: var(--bg-light);
}

.top-header {
    background: var(--card-bg);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h3 {
    margin: 0;
    color: var(--text-primary);
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.page-content {
    padding: 30px;
}

/* ================= CARDS ================= */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.card-body {
    padding: 25px;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.primary::before { background: var(--secondary); }
.stat-card.success::before { background: var(--accent); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before { background: var(--info); }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-icon.primary { background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%); }
.stat-icon.success { background: linear-gradient(135deg, var(--accent) 0%, #1e8449 100%); }
.stat-icon.warning { background: linear-gradient(135deg, var(--warning) 0%, #d68910 100%); }
.stat-icon.danger { background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%); }
.stat-icon.info { background: linear-gradient(135deg, var(--info) 0%, #8e44ad 100%); }

.stat-content h4 {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-change {
    font-size: 12px;
    margin-top: 5px;
}

.stat-change.positive { color: var(--accent); }
.stat-change.negative { color: var(--danger); }

/* ================= TABLES ================= */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Ensure table has minimum width for scrolling */
}

.table th,
.table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap; /* Prevent text wrapping */
}

.table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    font-weight: 600;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table th:first-child {
    border-top-left-radius: var(--radius-sm);
}

.table th:last-child {
    border-top-right-radius: var(--radius-sm);
}

.table tbody tr {
    transition: var(--transition);
    background: white;
}

.table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.table tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-sm);
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-sm);
}

.table .actions {
    display: flex;
    gap: 6px;
}

.table .actions .btn {
    padding: 5px 8px;
    font-size: 11px;
}

/* Enhanced table styling for better visibility */
.table td {
    color: var(--text-primary);
    font-size: 13px;
}

.table td strong {
    color: var(--primary);
}

.table .badge {
    font-size: 10px;
    padding: 3px 8px;
}

/* Data Tables Specific Styles */
.data-table {
    min-width: 1200px;
}

.data-table th {
    background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
    padding: 14px 16px;
    font-size: 11px;
    letter-spacing: 1px;
}

.data-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

/* Employee List Scrollbar - Fixed height container */
.table-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.table-scroll-container .table {
    min-width: 100%;
}

.table-scroll-container .table th {
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Custom scrollbar for employee list */
.table-scroll-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 5px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary) 0%, #2980b9 100%);
    border-radius: 5px;
    border: 2px solid var(--bg-light);
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.table-scroll-container::-webkit-scrollbar-corner {
    background: var(--bg-light);
}

/* Table compact mode for smaller screens */
.table-compact th,
.table-compact td {
    padding: 8px 10px;
    font-size: 12px;
}

/* ================= FORMS ================= */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.single {
    max-width: 300px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f8c8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox Group for Working Days */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.checkbox-inline:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--secondary);
}

.checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary);
}

.checkbox-inline input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--secondary);
}

/* ================= MODALS ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ================= SEARCH & FILTER ================= */
.search-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    padding-left: 45px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-box select {
    min-width: 150px;
}

/* ================= BADGES ================= */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(39, 174, 96, 0.15); color: var(--accent); }
.badge-warning { background: rgba(243, 156, 18, 0.15); color: var(--warning); }
.badge-danger { background: rgba(231, 76, 60, 0.15); color: var(--danger); }
.badge-info { background: rgba(52, 152, 219, 0.15); color: var(--secondary); }
.badge-primary { background: rgba(44, 62, 80, 0.15); color: var(--primary); }

/* ================= ALERTS ================= */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success { background: rgba(39, 174, 96, 0.15); color: var(--accent); border-left: 4px solid var(--accent); }
.alert-danger { background: rgba(231, 76, 60, 0.15); color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(243, 156, 18, 0.15); color: var(--warning); border-left: 4px solid var(--warning); }
.alert-info { background: rgba(52, 152, 219, 0.15); color: var(--secondary); border-left: 4px solid var(--secondary); }

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 14px;
}

.pagination a:hover {
    background: var(--secondary);
    color: white;
}

.pagination a.active {
    background: var(--secondary);
    color: white;
}

/* ================= PAYSLIP STYLES ================= */
.payslip-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.payslip-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.payslip-header h2 {
    color: white;
    margin-bottom: 5px;
}

.payslip-body {
    padding: 30px;
}

.payslip-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.payslip-row:last-child {
    border-bottom: none;
}

.payslip-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid var(--primary);
    border-bottom: none;
    padding-top: 15px;
}

.payslip-section {
    margin-bottom: 25px;
}

.payslip-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

/* ================= REPORTS ================= */
.chart-container {
    height: 300px;
    margin-bottom: 25px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

/* ================= EMPTY STATE ================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* ================= UTILITY CLASSES ================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--secondary); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .page-content {
        padding: 20px 15px;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= ANIMATED TASK BAR ================= */

/* Animated Header Background */
.top-header {
    background: linear-gradient(-45deg, #2c3e50, #3498db, #27ae60, #9b59b6, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    transition: all 0.3s ease;
    /* Floating card shape */
    margin: 15px;
    margin-left: calc(var(--sidebar-width) + 15px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .top-header {
        margin: 10px;
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .top-header {
        margin: 8px;
        margin-left: 8px;
        border-radius: 15px;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Header Shadow Animation on Scroll */
.top-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-left h3 {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-btn {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* User Info Text Colors */
.user-name {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-role {
    color: rgba(255, 255, 255, 0.8);
}

/* Logout Button Hover Animation */
.header-right .btn-danger {
    transition: all 0.3s ease;
}

.header-right .btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

/* ================= ANIMATED SIDEBAR ================= */

/* Sidebar Brand Animation */
.sidebar-brand {
    position: relative;
    overflow: hidden;
}

.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animated Menu Items */
.menu-item {
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.menu-item:hover i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Active Menu Item Glow Effect */
.menu-item.active {
    background: rgba(52, 152, 219, 0.3);
    border-left-color: #3498db;
    animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow: inset 0 0 10px rgba(52, 152, 219, 0.3);
    }
    50% {
        box-shadow: inset 0 0 20px rgba(52, 152, 219, 0.5), 0 0 10px rgba(52, 152, 219, 0.3);
    }
}

.menu-item.active i {
    animation: activeIconPulse 1.5s ease-in-out infinite;
}

@keyframes activeIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Sidebar Section Animation */
.menu-section {
    position: relative;
}

.menu-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    animation: sectionSlide 2s ease-in-out infinite;
}

@keyframes sectionSlide {
    0%, 100% {
        width: 30px;
        opacity: 0.5;
    }
    50% {
        width: 60px;
        opacity: 1;
    }
}

/* ================= STAT CARD ANIMATIONS ================= */
.stat-card {
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.stat-card:hover .stat-icon {
    animation: iconSpin 0.5s ease;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= ANIMATIONS ================= */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= PRINT STYLES ================= */
@media print {
    .sidebar,
    .top-header,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .payslip-container {
        box-shadow: none;
    }
}

/* ================= DASHBOARD ENHANCED ANIMATIONS ================= */

.main-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    background-size: 200% 200%;
    animation: pageGradient 10s ease infinite;
}

@keyframes pageGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page-content {
    animation: contentFadeIn 0.8s ease;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: cardSlideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--warning), var(--info));
    background-size: 300% 100%;
    animation: cardBorderGradient 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before { opacity: 1; }

@keyframes cardBorderGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation: headerShine 2s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.card-header h3 i {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.table tbody tr {
    animation: rowSlideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

.table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.table tbody tr:nth-child(5) { animation-delay: 0.25s; }

@keyframes rowSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(39, 174, 96, 0.1));
    transform: scale(1.01);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
    pointer-events: none;
}

.stat-card:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.stat-card .stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: iconGlow 1.5s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    animation: valueUnderline 2s ease-in-out infinite;
}

@keyframes valueUnderline {
    0%, 100% { width: 100%; opacity: 0.5; }
    50% { width: 50%; opacity: 1; }
}

.d-flex.gap-2 .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.d-flex.gap-2 .btn:hover::before { left: 100%; }

.d-flex.gap-2 .btn-success:hover,
.d-flex.gap-2 .btn-warning:hover,
.d-flex.gap-2 .btn-info:hover,
.d-flex.gap-2 .btn-primary:hover {
    animation: btnPulse 0.5s ease;
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.d-flex.gap-2 .btn:hover i {
    animation: btnIconBounce 0.5s ease;
}

@keyframes btnIconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
}

.empty-state {
    animation: emptyStatePulse 2s ease-in-out infinite;
}

@keyframes emptyStatePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.empty-state i {
    animation: emptyIconFloat 3s ease-in-out infinite;
}

@keyframes emptyIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.report-grid .card {
    animation: reportCardIn 0.7s ease forwards;
    opacity: 0;
    transform: scale(0.95);
}

.report-grid .card:nth-child(1) { animation-delay: 0.2s; }
.report-grid .card:nth-child(2) { animation-delay: 0.4s; }

@keyframes reportCardIn {
    to { opacity: 1; transform: scale(1); }
}

/* ================= ATTENDANCE TRACKER STYLES ================= */
.attendance-tracker {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tracker-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.tracker-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tracker-item label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tracker-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.status-card {
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.status-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-header i {
    color: var(--secondary);
}

.status-time {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.tracker-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.tracker-buttons .btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
}

.tracker-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination-controls .btn-sm {
    min-width: 36px;
    text-align: center;
    padding: 6px 12px;
}

.btn-outline {
    background: #fff;
    color: #2c3e50;
    border: 1px solid #dee2e6;
}

.btn-outline:hover {
    background: #e9ecef;
}
