@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1a56db;
    --primary-hover: #1e40af;
    --sidebar-bg: #ffffff;
    --bg-color: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --transition: 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo-container {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.nav-links {
    flex: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

.nav-item.active {
    background-color: #f0f5ff;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.nav-item i {
    font-size: 20px;
}

/* Sidebar Dropdown */
.nav-dropdown {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-toggle {
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    justify-content: flex-start;
    position: relative;
    background: none;
    border: none;
}

.nav-dropdown-arrow {
    margin-left: auto;
    font-size: 14px !important;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}

.nav-sub-item {
    display: flex;
    align-items: center;
    padding: 10px 24px 10px 56px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    position: relative;
}

.nav-sub-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    margin-right: 10px;
    flex-shrink: 0;
    opacity: 0.5;
}

.nav-sub-item:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

.nav-sub-item.active {
    color: var(--primary-color);
    background-color: #f0f5ff;
}

.nav-sub-item.active::before {
    background-color: var(--primary-color);
    opacity: 1;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Header */
header {
    height: 72px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 8px 16px;
    width: 400px;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 8px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid var(--border-color);
}

.user-info {
    text-align: right;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.user-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Page Content */
.page-content {
    padding: 32px;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.page-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 16px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Data Table */
.data-table-container {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 16px;
    background-color: #f9fafb;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    /* border-bottom: 1px solid var(--border-color); */
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.employee-info span {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 14px;
}

.font-medium {
    font-weight: 500;
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #ecfdf5;
    color: #059669;
}

.status-active::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

.status-completed {
    background-color: #ecfdf5;
    color: #059669;
}

.status-completed::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

.status-on-hold {
    background-color: #fffbeb;
    color: #d97706;
}

.status-on-hold::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #f59e0b;
    border-radius: 50%;
}

.status-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #9ca3af;
    border-radius: 50%;
}

/* Actions */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.edit-btn {
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.edit-btn:hover {
    color: var(--text-primary);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #10b981;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Footer Pagination */
.table-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.table-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover {
    background-color: #f3f4f6;
}

.page-btn.active {
    background-color: #eff6ff;
    color: var(--primary-color);
    border-color: #bfdbfe;
    font-weight: 500;
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 4px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.4);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-title p {
    font-size: 14px;
    color: var(--text-secondary);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.text-danger {
    color: #ef4444;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    background-color: white;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper .form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    right: 14px;
    color: var(--text-secondary);
    pointer-events: none;
}

.modal-footer {
    padding: 16px 24px;
    background-color: #f9fafb;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.btn-secondary {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-secondary:hover {
    color: var(--text-primary);
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.login-header p {
    color: #64748b;
    font-size: 15px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 100%;
    border: 1px solid #f1f5f9;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    margin-top: 8px;
}

.forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper i {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
}

.remember-me {
    margin: 20px 0 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #f1f5f9;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.btn-social img {
    width: 18px;
    height: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
}

.login-footer p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.login-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-links a:hover {
    color: #64748b;
}

/* Responsive Design */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .search-bar {
        width: 300px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        width: 260px;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
        height: 100vh;
    }

    .sidebar.active {
        left: 0;
    }

    header {
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-bar {
        display: none;
    }

    .page-content {
        padding: 20px 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Responsive Table Wrapper */
    .data-table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    .user-info {
        display: none;
    }

    .user-profile {
        padding-left: 0;
        border-left: none;
    }

    .modal-content {
        margin-top: 20px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        overflow-y: auto;
    }

    .form-row {
        flex-direction: column;
        gap: 24px;
    }

    .login-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 24px;
    }

    .login-footer p,
    .login-footer a {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Global Components Shared Across Pages */

/* Tabs Style */
.table-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.tab-item {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    color: var(--text-primary);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* User & Manager Avatars/Circles */
.user-avatar,
.manager-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.manager-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

/* Action Buttons */
.action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg-color);
    border-color: #cbd5e1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 8px;
}

.pagination p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn,
.page-number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover,
.page-number:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.page-number.active {
    color: var(--text-primary);
    background: #fff;
    border-color: var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search Bar focus */
.search-bar.focused {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Progress Bar related styles */
.budget-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 130px;
}

.budget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}

.budget-amount {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.budget-percent {
    font-size: 13px;
    color: #64748b;
}

.progress-container {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: #1a56db;
    transition: width 0.3s ease;
}

/* Grid Layouts */
.kpi-grid {
    display: grid;
    gap: 24px;
}

.kpi-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.kpi-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 10px 0 15px -3px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-bar {
        width: 100%;
        max-width: 300px;
    }

    .header-actions {
        gap: 12px;
    }

    .user-info {
        display: none;
    }

    .page-content {
        padding: 24px 16px;
    }

    /* KPI Grid Responsive */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 16px;
    }

    .search-bar {
        display: none;
        /* Hide search on very small screens or make it an icon */
    }

    .kpi-grid {
        grid-template-columns: 1fr !important;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Tables */
    .data-table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
        /* Ensure table doesn't squish too much */
    }

    /* Detail Page Grids */
    .details-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-content {
        max-width: 95%;
        margin: 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 24px;
    }
}

/* Helper for scrollable tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}