* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
}

/* Base Settings */
html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #f8f9fc;
    overflow-x: hidden;
}

/* Authentication Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #224abe 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
}

.auth-content {
    padding: 1.75rem 1.5rem 2rem;
}

.auth-content h2 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Authentication Link Styles - Consistent styling for forgot password and back to login links */
.auth-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    margin-top: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link:hover {
    color: #2e59d9;
    text-decoration: none;
}

.auth-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-link:hover::after {
    width: 100%;
}

/* Center alignment for auth links */
.auth-link-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* Forgot Password */
.forgot-password-content {
    padding: 2rem 1.5rem;
}

.forgot-password-content h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 24px;
}

/* Reset Password */
.reset-password-content {
    padding: 2rem 1.5rem;
}

.reset-password-content h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d3e2;
    border-radius: 5px;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-control.error {
    border-color: var(--danger-color);
}

.error-message {
    display: block;
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
}

/* Password Reveal */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-control {
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6f767c;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-wrapper.edit-password .toggle-password {
    top: 35%;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2e59d9;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #60646f;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Admin Panel */
.admin-page {
    min-height: 100vh;
    background: var(--light-color);
}

.admin-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Sidebar - Fixed font color */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #224abe 0%, var(--primary-color) 100%);
    color: white;
    transition: all 0.3s;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    color: white !important;
}

.sidebar-menu {
    list-style: none;
    padding: 1.25rem 0;
    flex: 1;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.3rem;
}

.sidebar-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0.9rem 1.25rem;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    padding: 10px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 12px;
    text-align: center;
    margin-bottom: 10px;
}

.user-info small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.user-info strong {
    color: white !important;
}

.logout-link {
    display: block;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0.625rem;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.875rem;
    overflow-y: auto;
    transition: margin-left 0.3s;
    width: calc(100% - var(--sidebar-width));
}

.content-header {
    margin-bottom: 1.875rem;
}

.content-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
}

.content-body {
    background: white;
    border-radius: 10px;
    padding: 1.875rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Dashboard Page */
.dashboard-content {
    padding: 20px;
    min-height: 400px;
}

.welcome-section {
    margin-bottom: 30px;
    text-align: center;
}

.welcome-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.welcome-section p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
}

.page-section {
    margin-bottom: 30px;
    text-align: center;
}

.page-section h2 {
    color: var(--dark-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-section p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
}

.placeholder-section {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.dashboard-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table {
    width: 100%;
    min-width: 600px;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: #f8f9fa;
    padding: 0.75rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.875rem;
    white-space: nowrap;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    gap: 0.25rem;
    justify-content: center;
}

.pagination li {
    margin: 0;
}

.pagination a {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination .active a {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .disabled a {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Message Alerts */
.alert,
.message {
    padding: 1rem 1.25rem;
    border-radius: 5px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.alert-success,
.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger,
.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Separator */
.form-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.form-separator span {
    background: white;
    padding: 0 10px;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.form-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #d1d3e2;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.success-container {
    text-align: center;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon img {
    width: 100px;
    height: 100px;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-muted {
    color: #6c757d;
}

/* Utility classes for change password page */
.d-block {
    display: block !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* No Data Prompt */
.no-data {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 5px;
}

.no-data p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 1rem;
}

/* Mobile Top Navigation */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1002;
    padding: 0 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: #4e73df;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #2e59d9;
}


.mobile-menu-btn .menu-icon::before,
.mobile-menu-btn .menu-icon::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: white;
    left: 0;
    transition: all 0.3s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }

    .content-body {
        padding: 1.25rem;
    }
}

/* Responsive - Mobile Devices */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .mobile-header {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    /* Mobile Sidebar Styles */
    .sidebar-header {
        background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
        padding: 1.5rem;
        color: white;
        position: relative;
    }

    .sidebar-brand {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        color: white !important;
    }

    .sidebar-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        transition: background 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-close:hover {
        background: rgba(255,255,255,0.3);
    }

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

    .sidebar-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .sidebar-menu a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        color: #333 !important;
        text-decoration: none;
        transition: all 0.3s;
        position: relative;
    }

    .sidebar-menu a::after {
        content: '>';
        color: #999;
        font-weight: bold;
        transition: all 0.3s;
    }

    .sidebar-menu a:hover,
    .sidebar-menu li.active a {
        background: #f0f5ff;
        color: #4e73df !important;
        padding-left: 2rem;
    }

    .sidebar-menu a:hover::after,
    .sidebar-menu li.active a::after {
        color: #4e73df;
        transform: translateX(-5px);
    }

    .sidebar-footer {
        padding: 1rem;
        border-top: 2px solid #f0f0f0;
        background: #f8f9fa;
    }

    .sidebar-footer .user-info {
        background: white;
        padding: 0.75rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        color: #333 !important;
    }

    .sidebar-footer .user-info small {
        color: #666 !important;
    }

    .sidebar-footer .user-info strong {
        color: #333 !important;
    }

    .sidebar-footer .logout-link {
        background: #dc3545;
        color: white !important;
        padding: 0.75rem;
        text-align: center;
        border-radius: 8px;
        text-decoration: none;
        display: block;
        transition: background 0.3s;
    }

    .sidebar-footer .logout-link:hover {
        background: #c82333;
        color: white !important;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
        padding-top: 70px;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .content-body {
        padding: 1rem;
        border-radius: 5px;
    }

    .dashboard-content {
        padding: 15px;
    }

    .welcome-section h2,
    .page-section h2 {
        font-size: 1.5rem;
    }

    .welcome-section p,
    .page-section p {
        font-size: 0.9rem;
    }

    .placeholder-section {
        padding: 20px;
        margin-top: 20px;
    }

    .dashboard-image {
        max-height: 250px;
    }

    .table {
        font-size: 0.75rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .hide-mobile {
        display: none !important;
    }

    .mobile-info {
        display: block;
    }

    .auth-header {
        padding: 1.25rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .auth-content {
        padding: 1.25rem 1rem 1.5rem;
    }
}

/* Responsive - Small Screen */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 70px;
    }

    .content-header h1 {
        font-size: 1.25rem;
    }

    .content-body {
        padding: 0.75rem;
    }

    .dashboard-content {
        padding: 10px;
    }

    .welcome-section h2,
    .page-section h2 {
        font-size: 1.25rem;
    }

    .welcome-section p,
    .page-section p {
        font-size: 0.85rem;
    }

    .placeholder-section {
        padding: 15px;
        margin-top: 15px;
    }

    .dashboard-image {
        max-height: 200px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    .pagination {
        gap: 0.125rem;
    }

    .pagination a {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-header,
    .mobile-menu-btn,
    .btn,
    .pagination {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 0 !important;
    }
}

/* RESET PASSWORD - Remove these old header styles */
#login-header, #reset-header {
    font-size: 5rem;
    color: #ba9657;
    font-weight: bold;
    text-align: center;
}

#forgot-password-header{
    font-size: 4rem;
    color: #ba9657;
    font-weight: bold;
    text-align: center;
}

.section-padding-forgot-password{
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-padding-reset-password{
    padding-top: 50px;
    padding-bottom: 50px;
}
@media (max-width: 768px) {
    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #222;
        color: white;
    }

    .mobile-menu-btn {
        background: none;
        border: none;
        font-size: 20px;
        color: white;
    }

    .admin-wrapper .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100%;
        width: 250px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .admin-wrapper.sidebar-open .sidebar {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .admin-wrapper.sidebar-open .sidebar-overlay {
        display: block;
    }
}/* Force mobile-nav to hide in desktop */
@media (min-width: 769px) {
    .mobile-nav,
    .mobile-nav-overlay,
    .mobile-header {
        display: none !important;
    }
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.mobile-nav-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-footer .logout-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
}

.mobile-nav-footer .logout-link:hover {
    background: #2b2d3a;
}
@media (max-width: 768px) {
    .mobile-header { display:flex !important; align-items:center; height:56px; padding:0 12px; }
    .mobile-menu-btn { background:none; border:0; width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; }
    .mobile-menu-btn .menu-icon, .mobile-menu-btn .menu-icon::before, .mobile-menu-btn .menu-icon::after {
        content:""; display:block; width:22px; height:2px; background: currentColor; position:relative;
    }
    .mobile-menu-btn .menu-icon::before { position:absolute; top:-6px; }
    .mobile-menu-btn .menu-icon::after { position:absolute; top: 6px; }
    /* Drawer */
    .mobile-nav { position: fixed; top:0; left:-280px; width:260px; height:100vh; background:#1e1f29; color:#fff; z-index:1100; transition:left .28s ease; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:12px 0; }
    .mobile-nav.open { left:0; }
    .mobile-nav a { display:block; padding:12px 16px; color:#fff; text-decoration:none; }
    .mobile-nav a:hover { background:#2b2d3a; }
    .mobile-nav .mobile-nav-header { padding:12px 16px; font-weight:600; }
    .mobile-nav .divider { height:1px; margin:8px 0; background:rgba(255,255,255,.08); }
    /* Overlay */
    .mobile-nav-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1095; }
    .mobile-nav-overlay.show { display:block; }
}
.mobile-menu-btn {
    color: inherit;
}
 .users-management {
     padding: 1rem;
 }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.75rem;
    color: #333;
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.table {
    width: 100%;
    min-width: 600px;
    background: white;
    margin-bottom: 0;
}

.table th {
    background: #f8f9fa;
    padding: 0.75rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.875rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

.btn-primary {
    background-color: #4e73df;
    color: white;
}

.btn-primary:hover {
    background-color: #2e59d9;
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    color: #212529;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.no-data {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.no-data p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 1rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    gap: 0.25rem;
    justify-content: center;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination .active a {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .disabled a {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.mobile-info {
    display: none;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 统一蓝色风格的模态对话框 */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    display: block;
    opacity: 1;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-backdrop.show .modal-container {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-dialog {
    background: white;
    border-radius: 8px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
    letter-spacing: 0.3px;
}

.modal-body {
    padding: 1.75rem 1.5rem;
    background: white;
}

.modal-message {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.625rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.875rem;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn-primary {
    background: #4e73df;
    color: white;
}

.modal-btn-primary:hover {
    background: #2e59d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.4);
}

.modal-btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .users-management {
        padding: 0.5rem;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .page-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .btn-primary {
        width: 100%;
        padding: 0.625rem;
    }

    .table-responsive {
        margin: 0 -0.5rem;
        border-radius: 0;
    }

    .hide-mobile {
        display: none !important;
    }

    .mobile-info {
        display: block;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        text-align: center;
    }

    .modal-dialog {
        width: calc(100vw - 2rem);
        margin: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-btn {
        width: 100%;
    }
}

/* Dashboard Filter Styles - Unified for Site-wide Consistency */
.dashboard-header {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #858796;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Unified Select Styles */
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e3e6f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #6e707e;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fc;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

/* Unified Date Input Styles */
.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e3e6f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6e707e;
}

.filter-input:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fc;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    filter: invert(0.5);
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(0.3);
}

/* Responsive Filter Layout */
@media (max-width: 1200px) {
    .filters-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        padding: 20px;
    }
}
.btn-big{

    --btn-min-w: 360px;
    --btn-min-h: 56px;
    --btn-font: 1.125rem;

    min-width: var(--btn-min-w);
    min-height: var(--btn-min-h);
    font-size: var(--btn-font);


    padding: 0 1.75rem;


    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;


    border-radius: 12px;
    white-space: nowrap;
}

@media (max-width: 576px){
    .btn-big{ min-width: 100%; }
}
/* 基础：把已有的 loading 覆盖成用变量的单色方案 */
#loadingdata,
.loading-overlay {
    background: var(--overlay-bg) !important;
    color: var(--overlay-fg) !important;
}

/* 如果是圆环 spinner（非 GIF），按主题着色 */
#loadingdata .spinner,
.loading-overlay .spinner {
    border: 3px solid color-mix(in srgb, var(--overlay-fg) 30%, transparent) !important;
    border-top-color: var(--overlay-fg) !important;
}

/* 主题变量 */
[data-theme="default"]{
    --overlay-bg: rgba(255,255,255,.90);
    --overlay-fg: #2a57b5;
}
[data-theme="blue"]{
    /* 深色模式：整屏深色 */
    --overlay-bg: rgba(8,13,32,.94);
    --overlay-fg: #ffffff;
}
[data-theme="white"]{
    --overlay-bg: rgba(255,255,255,.94);
    --overlay-fg: #081233;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#welcome {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

/* User Management Search */
#search-form {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

#search-form .form-control {
    width: 220px;
    height: 30px;
    padding: 0.375rem 0.75rem;
    margin-bottom: 10px;
}

#search-form button {
    flex: 0 0 auto;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    #search-form {
        flex-direction: column;
        align-items: stretch;
    }

    #search-form .form-control {
        flex: 1 1 auto;
        width: 100%;
    }

    #search-form .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #search-form {
        flex-direction: column;
        align-items: stretch;
    }

    #search-form .form-control {
        flex: 1 1 auto;
        width: 100%;
    }

    #search-form .btn {
        width: 100%;
    }
}
.badge-warning {
    color: #fff !important;
    background-color: #f0b400 !important;
}

