/* ========================================
   PWD MONITORING SYSTEM - COMPLETE STYLES
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ===== COLOR VARIABLES ===== */
:root {
    --primary: #1a6d3c;
    --primary-dark: #0d4a2a;
    --primary-light: #2ecc71;
    --primary-bg: #e8f5e9;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --dark: #1a1a2e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 109, 60, 0.3);
}

.btn-success {
    background: #27ae60;
    color: var(--white);
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: var(--white);
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d68910;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2e86c1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   ACCESSIBILITY TOOLBAR - FIXED
   ============================================ */

.accessibility-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    color: hsl(135, 89%, 41%);
    color: white;
    padding: 6px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 44px;
    display: flex;
    align-items: center;
}

.toolbar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.language-selector label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 1000;
    font-size: 12px;
}

.language-select {
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.language-select option {
    color: #333;
}

.accessibility-controls {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.access-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 500;
}

.access-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* ============================================
   DASHBOARD - FIX FOR ACCESSIBILITY TOOLBAR
   ============================================ */

/* Dashboard container - may top padding para hindi matakpan */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
    position: relative;
    overflow: hidden;
    padding-top: 38px; /* Height of accessibility toolbar */
}

/* Sidebar - adjusted top */
.sidebar {
    width: 260px;
    background: #4CAF50;
    color: white;
    padding: 20px 0;
    position: fixed;
    top: 38px; /* Below accessibility toolbar */
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

/* Main content - adjusted margin */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px 30px 40px;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    background: #f0f2f5;
    padding-top: 20px;
}

/* Custom scrollbar for main content */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #1a6d3c;
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #0d4a2a;
}

/* Firefox scrollbar */
.main-content {
    scrollbar-width: thin;
    scrollbar-color: #1a6d3c #f0f0f0;
}

/* ============================================
   RESPONSIVE FIX
   ============================================ */

@media (max-width: 768px) {
    .accessibility-toolbar {
        padding: 4px 12px;
        height: 34px;
    }
    
    .toolbar-container {
        gap: 4px;
    }
    
    .language-selector {
        font-size: 11px;
    }
    
    .language-select {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .access-btn {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .dashboard {
        padding-top: 34px;
    }
    
    .sidebar {
        top: 100px;
        width: 240px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    .accessibility-toolbar {
        padding: 3px 8px;
        height: 30px;
    }
    
    .language-selector {
        font-size: 12px;
        gap: 4px;
    }
    
    .language-select {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .access-btn {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .dashboard {
        padding-top: 30px;
    }
    
    .sidebar {
        top: 30px;
        width: 100%;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 12px;
    }
}

/* ============================================
   LOGIN SCREEN - BACKGROUND SA HTML
   ============================================ */

#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
}

/* ===== BACKGROUND IMAGE - NASA HTML ANG PICTURE ===== */
#login-screen .login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover; /* Default, pero pwede mong i-override sa HTML */
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

/* Optional: Blur effect para mas maganda */
#login-screen .login-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(1px);
}

#login-screen .login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
}
    /* WALA NG BACKGROUND DITO - NASA HTML NA */


#login-screen .login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* ===== LOGIN CONTAINER ===== */
#login-screen .login-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px 32px 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 95vh;
    overflow-y: auto;
}

/* Scrollbar */
#login-screen .login-container::-webkit-scrollbar {
    width: 4px;
}

#login-screen .login-container::-webkit-scrollbar-track {
    background: transparent;
}

#login-screen .login-container::-webkit-scrollbar-thumb {
    background: #1a6d3c;
    border-radius: 4px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BACK TO HOME ===== */
#login-screen .back-to-landing {
    background: none;
    border: none;
    color: #1a6d3c;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

#login-screen .back-to-landing:hover {
    background: rgba(26, 109, 60, 0.08);
}

/* ===== LOGIN HEADER ===== */
#login-screen .login-header {
    text-align: center;
    margin-bottom: 10px;
}

#login-screen .login-header .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #e8f5e9;
    padding: 10px;
}

#login-screen .login-header h1 {
    color: #1a6d3c;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 0px;
}

#login-screen .login-header .subtitle {
    color: #6c757d;
    font-size: 10px;
    font-weight: 500;
}

/* ===== FORM ===== */
#login-screen .login-form .form-group {
    margin-bottom: 7px;
}

#login-screen .login-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 10px;
    color: #1a1a2e;
    margin-bottom: 2px;
}

#login-screen .login-form label i {
    color: #1a6d3c;
    width: 16px;
    font-size: 13px;
}

#login-screen .login-form input,
#login-screen .login-form select {
    width: 100%;
    padding: 7px 10px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-size: 11.5px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
    color: #1a1a2e;
}

#login-screen .login-form input:focus,
#login-screen .login-form select:focus {
    border-color: #1a6d3c;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 109, 60, 0.1);
}

#login-screen .login-form input::placeholder {
    color: #b0b8c4;
    font-size: 12px;
}

/* ===== PASSWORD ===== */
#login-screen .password-input-wrapper {
    position: relative;
}

#login-screen .password-input-wrapper input {
    padding-right: 44px;
}

#login-screen .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 15px;
    padding: 4px 6px;
    transition: all 0.3s ease;
}

#login-screen .toggle-password:hover {
    color: #1a6d3c;
}

/* ===== OTP ===== */
#login-screen #otp-section {
    animation: fadeIn 0.3s ease;
}

#login-screen #otp-section .form-group {
    margin-bottom: 12px;
}

#login-screen #otp-section input {
    text-align: center;
    font-size: 18px;
    letter-spacing: 6px;
    font-weight: 700;
}

#login-screen .otp-timer {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 6px;
}

#login-screen #otp-timer {
    font-size: 14px;
}

/* ===== BUTTON ===== */
#login-screen .form-actions {
    margin-top: 12px;
}

#login-screen .form-actions .btn {
    padding: 8px;
    font-size: 12px;
    width: 100%;
    border-radius: 10px;
}

/* ===== FOOTER ===== */
#login-screen .login-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 11px;
    color: #6c757d;
}

#login-screen .login-footer a {
    color: #1a6d3c;
    text-decoration: none;
    font-weight: 600;
}

#login-screen .login-footer a:hover {
    text-decoration: underline;
}

#login-screen .login-footer p {
    margin-bottom: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    #login-screen .login-container {
        padding: 20px 18px 16px;
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
        max-height: 90vh;
    }
    
    #login-screen .login-header h1 {
        font-size: 18px;
    }
    
    #login-screen .login-header .logo {
        width: 50px;
        height: 50px;
    }
    
    #login-screen .login-form input,
    #login-screen .login-form select {
        padding: 9px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    #login-screen .login-container {
        padding: 16px 12px 14px;
        border-radius: 14px;
    }
    
    #login-screen .login-header h1 {
        font-size: 16px;
    }
    
    #login-screen .login-header .logo {
        width: 42px;
        height: 42px;
    }
}
/* ========================================
   MODALS
   ======================================== */
.modal {
    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);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

.modal-header {
    padding: 32px 40px 24px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
    border-radius: 24px 24px 0 0;
}

.modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-header-left h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.modal-header-left p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    padding: 4px 8px;
    line-height: 1;
}

.close-modal:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px 40px 40px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ========================================
   REGISTER MODAL
   ======================================== */
.register-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: #fafbfc;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.register-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 80px;
    right: 80px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
    transform: translateY(-50%);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
    cursor: pointer;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 109, 60, 0.3);
}

.step.completed .step-number {
    background: #27ae60;
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step.active .step-label {
    color: var(--primary);
}

.form-section {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary);
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group label i {
    color: var(--primary);
    width: 16px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf1;
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: #fafbfc;
    font-family: inherit;
    color: var(--dark);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.1);
}

.form-control::placeholder {
    color: #b0b8c4;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 50px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 4px 8px;
    transition: var(--transition);
}

.toggle-password-btn:hover {
    color: var(--primary);
}

.document-upload {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upload-item {
    border: 2px dashed #d0d5dd;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: #fafbfc;
}

.upload-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-item i {
    font-size: 28px;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.upload-item span {
    font-size: 13px;
    color: #666;
    display: block;
}

.upload-item .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.register-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.terms-checkbox {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    min-width: 20px;
    height: 20px;
    border: 2px solid #d0d5dd;
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.register-submit-btn {
    padding: 16px !important;
    font-size: 17px !important;
}

.register-login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray);
}

.register-login-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.register-login-link a:hover {
    text-decoration: underline;
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ========================================
   TERMS MODAL
   ======================================== */
.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.terms-content h3 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 18px;
}

.terms-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.terms-agreement {
    margin-top: 20px;
    padding: 16px;
    background: var(--primary-bg);
    border-radius: var(--radius);
}

.terms-agreement label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: green;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: #4CAF50;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 50px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.sidebar-menu .menu-item {
    margin-bottom: 4px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: green;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-menu .menu-item a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu .menu-item:hover a {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar-menu .menu-item.active a {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: inset 3px 0 0 #2ecc71;
}

.sidebar-footer {
    padding: 20px 16px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
}

.sidebar-footer .btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-footer .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
    padding: 4px;
}

.top-bar-left h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.user-role {
    font-size: 11px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f0f0f0;
}

.notification-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-left: 4px solid #1a6d3c;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    font-size: 28px;
    color: hwb(145 5% 32%);
    margin-bottom: 8px;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #8e8e8e;
    font-weight: 500;
}

/* ========================================
   CHARTS GRID
   ======================================== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px 0;
}

.chart-container {
    height: 260px;
    position: relative;
}

/* ========================================
   ACTIVITIES SECTION
   ======================================== */
.activities-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.activities-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px 0;
}

.recent-activities {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f0f1f2;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-user {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.activity-action {
    font-size: 13px;
    color: #555;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    margin-bottom: 28px;
}

.page-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.page-header h2 i {
    color: #1a6d3c;
    margin-right: 10px;
}

.page-header p {
    color: #8e8e8e;
    font-size: 15px;
    margin: 0;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.empty-state i {
    font-size: 56px;
    color: #d0d5dd;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: #555;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
    text-align: center;
    padding: 50px;
    color: #999;
}

.loading-spinner i {
    font-size: 32px;
    color: #1a6d3c;
    margin-right: 12px;
}

/* ========================================
   STATUS BADGES
   ======================================== */
.status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active, .status-approved, .status-completed {
    background: #e8f5e9;
    color: #1a6d3c;
}

.status-pending, .status-upcoming {
    background: #fff3e0;
    color: #f39c12;
}

.status-rejected, .status-cancelled {
    background: #ffebee;
    color: #e74c3c;
}

.status-appealed {
    background: #e8eaf6;
    color: #3f51b5;
}

/* ========================================
   PROFILE PAGE
   ======================================== */
#profile-content {
    display: grid;
    gap: 24px;
}

.profile-card-main {
    background: linear-gradient(135deg, #1a6d3c 0%, #0c9b51 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.profile-avatar-large {
    font-size: 80px;
    color: rgba(255,255,255,0.2);
}

.profile-info-main h2 {
    font-size: 28px;
    margin: 0 0 4px 0;
    color: white;
}

.profile-email {
    color: rgba(255,255,255,0.8);
    margin: 0 0 8px 0;
}

.profile-email i {
    margin-right: 8px;
}

.profile-role-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 18px;
    flex-shrink: 0;
}

.detail-info label {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 500;
    display: block;
}

.detail-info p {
    font-size: 15px;
    color: #1a1a2e;
    margin: 2px 0 0 0;
    font-weight: 500;
}

/* ========================================
   PROGRAMS PAGE
   ======================================== */
.program-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.program-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.program-card-header h3 {
    font-size: 18px;
    margin: 0;
}

.program-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.program-tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.program-tags span {
    font-size: 13px;
    color: #8e8e8e;
}

.program-tags span i {
    margin-right: 4px;
    color: #1a6d3c;
}

.program-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ========================================
   APPLICATIONS PAGE
   ======================================== */
.app-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.app-card-header h4 {
    font-size: 16px;
    margin: 0;
}

.app-card-body p {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

.app-reason {
    color: #e74c3c !important;
}

.app-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

/* ========================================
   EVENTS PAGE
   ======================================== */
.event-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-card-header h3 {
    font-size: 18px;
    margin: 0;
}

.event-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.event-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.event-details span {
    font-size: 13px;
    color: #8e8e8e;
}

.event-details span i {
    margin-right: 4px;
    color: #1a6d3c;
}

.event-actions {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ========================================
   FEEDBACK PAGE
   ======================================== */
.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feedback-form-card,
.feedback-list-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.feedback-form-card h3,
.feedback-list-card h3 {
    font-size: 18px;
    margin: 0 0 16px 0;
}

.feedback-form-card h3 i,
.feedback-list-card h3 i {
    color: #1a6d3c;
    margin-right: 8px;
}

.feedback-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feedback-item:last-child {
    border-bottom: none;
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.feedback-item-header h4 {
    font-size: 15px;
    margin: 0;
}

.feedback-item p {
    color: #666;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.feedback-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.feedback-response {
    margin-top: 8px;
    padding: 10px 14px;
    background: #f0f8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a6d3c;
}

/* ========================================
   SETTINGS PAGE
   ======================================== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.settings-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.settings-card h3 {
    font-size: 18px;
    margin: 0 0 16px 0;
}

.settings-card h3 i {
    color: #1a6d3c;
    margin-right: 8px;
}

.settings-option {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.settings-card hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 16px 0;
}

/* ========================================
   ANALYTICS PAGE
   ======================================== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.analytics-card h3 {
    font-size: 14px;
    color: #8e8e8e;
    margin: 0 0 8px 0;
}

.analytics-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a6d3c;
    margin: 0;
}

.analytics-chart-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.analytics-chart-container h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
}

.analytics-chart-container h3 i {
    color: #1a6d3c;
    margin-right: 8px;
}

.analytics-chart-container canvas {
    height: 250px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .profile-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-card-main {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .program-tags,
    .event-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .program-actions {
        flex-direction: column;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .top-bar-left h2 {
        font-size: 17px;
    }
    
    .user-name {
        font-size: 13px;
    }
}

/* ========================================
   ROLE BADGE
   ======================================== */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e8f5e9;
    color: #1a6d3c;
    border: 1px solid #a5d6a7;
    margin-right: 12px;
}

.role-badge i {
    font-size: 13px;
}

.role-badge.admin {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #90caf9;
}

.role-badge.staff {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffcc80;
}

.role-badge.pwd {
    background: #e8f5e9;
    color: hsl(135, 83%, 32%);
    border-color: #a5d6a7;
}

.profile-role-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.profile-role-badge.admin {
    background: #e3f2fd;
    color: #0d47a1;
}

.profile-role-badge.staff {
    background: #fff3e0;
    color: #e65100;
}

.profile-role-badge.pwd {
    background: #e8f5e9;
    color: #1a6d3c;
}

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-panel {
    background: linear-gradient(135deg, #f8f9fa, #e8f5e9);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #a5d6a7;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.admin-panel-header h3 i {
    color: #1a6d3c;
    margin-right: 8px;
}

.admin-panel-header p {
    font-size: 13px;
    color: #8e8e8e;
    margin: 0;
    background: rgba(26, 109, 60, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
}

.admin-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-panel-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.admin-panel-actions .btn-primary {
    background: #1a6d3c;
    color: white;
}

.admin-panel-actions .btn-warning {
    background: #f39c12;
    color: white;
}

.admin-panel-actions .btn-danger {
    background: #e74c3c;
    color: white;
}

.admin-panel-actions .btn-success {
    background: #27ae60;
    color: white;
}

.admin-panel-actions .btn-info {
    background: #3498db;
    color: white;
}

.admin-panel-actions .btn-secondary {
    background: #95a5a6;
    color: white;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 80px 0;
    background: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-info-card {
    background: linear-gradient(145deg, #f8f9fa, #e8f5e9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.contact-info-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(26, 109, 60, 0.15);
}

.contact-info-header i {
    font-size: 32px;
    color: #1a6d3c;
    background: rgba(26, 109, 60, 0.1);
    padding: 14px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 12px;
}

.contact-info-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.contact-info-header p {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(26, 109, 60, 0.12);
    border-left: 4px solid #1a6d3c;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(26, 109, 60, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1a6d3c;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 2px 0;
    letter-spacing: 0.3px;
}

.contact-details p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.contact-form-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-card h3 i {
    color: #1a6d3c;
    font-size: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.contact-form .form-group label i {
    color: #1a6d3c;
    font-size: 13px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
    color: #1a1a2e;
}

.contact-form .form-control:focus {
    border-color: #1a6d3c;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.08);
}

.contact-form .form-control::placeholder {
    color: #b0b8c4;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 4px;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .contact-info-card {
        order: 2;
    }
    
    .contact-form-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-info-card {
        padding: 28px 20px;
    }
    
    .contact-form-card {
        padding: 24px 18px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-item {
        padding: 12px 14px;
    }
    
    .contact-info-header h3 {
        font-size: 20px;
    }
    
    .contact-form-card h3 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-info-card {
        padding: 20px 14px;
    }
    
    .contact-form-card {
        padding: 18px 14px;
    }
    
    .contact-item {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 15px;
    }
    
    .contact-details h4 {
        font-size: 13px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .contact-form .form-control {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================
   MAP STYLES
   ======================================== */
.map-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 16px;
    z-index: 1;
}

.map-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.admin {
    background: #e74c3c;
}
.legend-dot.staff {
    background: #f39c12;
}
.legend-dot.pwd {
    background: #2ecc71;
}
.legend-dot.office {
    background: #1a6d3c;
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.custom-marker {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    #map {
        height: 400px;
    }
    
    .map-legend {
        gap: 12px;
        padding: 10px 16px;
    }
    
    .legend-item {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #map {
        height: 300px;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

/* ========================================
   APPLICATION FORM MODAL
   ======================================== */
.application-modal {
    max-width: 720px !important;
}

.app-program-info {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.app-info-item {
    display: flex;
    padding: 4px 0;
}

.app-label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
}

.app-value {
    color: #1a1a2e;
}

.requirements-info {
    background: #fff8e1;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #f39c12;
    margin-bottom: 16px;
}

.requirements-info ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.requirements-info ul li {
    padding: 4px 0;
    color: #555;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.upload-item {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafbfc;
}

.upload-item:hover {
    border-color: #1a6d3c;
    background: #f0f8f0;
}

.upload-item i {
    font-size: 24px;
    color: #1a6d3c;
    display: block;
    margin-bottom: 6px;
}

.upload-item span {
    font-size: 12px;
    color: #666;
    display: block;
}

.upload-item .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.app-pending {
    color: #f39c12;
    font-weight: 500;
}

.app-approved {
    color: #27ae60;
    font-weight: 500;
}

.app-reason {
    color: #e74c3c;
}

#app-cancel-btn {
    background: #95a5a6;
    color: white;
}

#app-cancel-btn:hover {
    background: #7f8c8d;
}

@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .app-info-item {
        flex-direction: column;
    }
    
    .app-label {
        min-width: auto;
    }
}

/* ========================================
   OFFICIAL PWD APPLICATION FORM
   ======================================== */
.form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #a5d6a7;
}

.form-logos {
    display: flex;
    gap: 12px;
}

.form-logos img {
    width: 50px;
    height: 50px;
}

.form-title {
    flex: 1;
}

.form-title h2 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

.form-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a6d3c;
    margin: 0;
}

.form-title p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.application-type {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.application-type label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

@media (max-width: 768px) {
    .form-header {
        flex-direction: column;
        text-align: center;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .application-type {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========================================
   MEMBERSHIP BANNER STYLES
   ======================================== */

.membership-btn-container {
    margin: 20px 0 24px;
}

.membership-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #a5d6a7;
    transition: all 0.3s ease;
}

.membership-banner:hover {
    box-shadow: 0 4px 20px rgba(26, 109, 60, 0.15);
    transform: translateY(-2px);
}

.membership-banner.pending {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-color: #ffcc02;
}

.membership-banner.rejected {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #e74c3c;
}

.membership-banner-icon {
    font-size: 56px;
    color: #1a6d3c;
    flex-shrink: 0;
    width: 70px;
    text-align: center;
}

.membership-banner.pending .membership-banner-icon {
    color: #f39c12;
}

.membership-banner.rejected .membership-banner-icon {
    color: #e74c3c;
}

.membership-banner-content {
    flex: 1;
}

.membership-banner-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.membership-banner-content p {
    color: #555;
    margin: 0 0 12px 0;
    font-size: 15px;
}

.membership-status-pending {
    color: #f39c12;
    font-weight: 600;
    font-size: 15px;
}

.membership-status-pending i {
    margin-right: 8px;
}

.membership-banner .btn {
    padding: 12px 28px;
    font-size: 16px;
}

.membership-banner .btn-lg {
    padding: 14px 36px;
    font-size: 18px;
}

.membership-form-modal {
    max-width: 750px !important;
}

.membership-terms-modal {
    max-width: 600px !important;
}

.membership-app-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.membership-docs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.membership-docs a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #1a6d3c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.membership-docs a:hover {
    background: #e8f5e9;
}

/* Responsive Membership */
@media (max-width: 768px) {
    .membership-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .membership-banner-icon {
        font-size: 40px;
        width: 50px;
    }
    
    .membership-banner .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .membership-banner {
        padding: 18px 14px;
    }
    
    .membership-banner-content h3 {
        font-size: 17px;
    }
    
    .membership-banner-content p {
        font-size: 13px;
    }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast .login-container,
.high-contrast .modal-content {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.high-contrast .form-control {
    background: #333 !important;
    color: #fff !important;
    border-color: #666 !important;
}

.high-contrast .btn-primary {
    background: #fff !important;
    color: #000 !important;
}

/* ========================================
   FONT SIZE CONTROLS
   ======================================== */
.font-small { font-size: 14px; }
.font-medium { font-size: 16px; }
.font-large { font-size: 18px; }
.font-xlarge { font-size: 20px; }

/* ========================================
   IMAGE STYLES (Landing Page)
   ======================================== */
.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    mix-blend-mode: multiply;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    background: transparent;
    mix-blend-mode: multiply;
}

.vm-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: transparent;
    mix-blend-mode: multiply;
}

/* ========================================
   MEMBERSHIP & NOTIFICATION FIXES
   ======================================== */

/* ===== HIDE MEMBER BADGE FOR STAFF & ADMIN ===== */
.member-badge-container {
    display: inline-block;
}

/* Only show for PWD users - controlled by JS */
.member-badge-container.pwd-only {
    display: inline-block;
}

.member-badge-container.staff-only {
    display: none !important;
}

.member-badge-container.admin-only {
    display: none !important;
}

/* ===== ROLE-BASED HIDING ===== */
/* Hide membership elements for non-PWD users */
body:not(.user-pwd) .membership-btn-container,
body:not(.user-pwd) .member-badge-container {
    display: none !important;
}

/* ===== NOTIFICATION BADGE FIX ===== */
.notification-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-btn .badge.hidden {
    display: none !important;
}

/* ===== NOTIFICATION PANEL STYLES ===== */
.notification-panel {
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    max-height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    display: none;
    border: 1px solid #f0f0f0;
}

.notification-panel.open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a6d3c, #0d4a2a);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-panel-header .badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.notification-panel-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #1a6d3c;
    font-size: 16px;
}

.notification-item .notif-content {
    display: inline-block;
    vertical-align: middle;
}

.notification-item .notif-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.notification-item .notif-message {
    font-size: 13px;
    color: #666;
    margin: 2px 0 0;
}

.notification-item .notif-time {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.notification-item .notif-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.notification-item .notif-badge.pending {
    background: #fff3e0;
    color: #f39c12;
}

.notification-item .notif-badge.approved {
    background: #e8f5e9;
    color: #27ae60;
}

.notification-item .notif-badge.rejected {
    background: #ffebee;
    color: #e74c3c;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.notification-empty i {
    font-size: 40px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}

.notification-empty p {
    margin: 0;
}

/* ===== MEMBERSHIP STATUS BADGE ===== */
.membership-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.membership-status-badge.approved {
    background: #e8f5e9;
    color: #1a6d3c;
}

.membership-status-badge.pending {
    background: #fff3e0;
    color: #f39c12;
}

.membership-status-badge.rejected {
    background: #ffebee;
    color: #e74c3c;
}

/* ========================================
   RESPONSIVE NOTIFICATIONS
   ======================================== */

@media (max-width: 768px) {
    .notification-panel {
        width: 320px;
        right: -80px;
    }
}

@media (max-width: 480px) {
    .notification-panel {
        width: 290px;
        right: -100px;
        top: 45px;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .notification-item .notif-title {
        font-size: 13px;
    }
}

/* ========================================
   STAFF MEMBERSHIP HIDE - FIX
   ======================================== */

/* Hide membership elements for staff and admin */
[data-role="pdao_staff"] .membership-btn-container,
[data-role="pdao_head"] .membership-btn-container,
[data-role="pdao_staff"] .member-badge-container,
[data-role="pdao_head"] .member-badge-container {
    display: none !important;
}

/* Show for PWD */
[data-role="pwd"] .membership-btn-container,
[data-role="pwd"] .member-badge-container {
    display: block;
}

/* ========================================
   TOP BAR - NOTIFICATION POSITION
   ======================================== */

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 22px;
    color: #555;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f0f0f0;
    color: #1a6d3c;
}

.notification-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.notification-btn .badge.hidden {
    display: none !important;
}

/* ========================================
   FIX: DUPLICATE MEMBER BADGE REMOVAL
   ======================================== */

/* Remove duplicate member badges from top bar */
.top-bar-right .member-badge-container {
    display: none !important;
}

/* Only show member badge in the membership banner area */
.membership-banner-content .member-badge {
    display: none;
}

/* ========================================
   HIDE RECENT ACTIVITIES FOR NON-ADMIN
   ======================================== */

/* Hide by default */
.activities-section {
    display: block;
}

/* Hide for Staff and PWD using data attribute */
[data-role="pdao_staff"] .activities-section,
[data-role="pwd"] .activities-section {
    display: none !important;
}

/* Show for Admin */
[data-role="pdao_head"] .activities-section {
    display: block !important;
}

/* Alternative: Show lock icon for non-admin */
.activities-locked {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.activities-locked i {
    font-size: 32px;
    color: #ddd;
    display: block;
    margin-bottom: 10px;
}

.activities-locked p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   HIDE FEEDBACK FOR ADMIN ONLY
   ======================================== */

/* Hide feedback menu for Admin only */
[data-role="pdao_head"] .menu-item[data-page="feedback"] {
    display: none !important;
}

/* Show for Staff and PWD */
[data-role="pdao_staff"] .menu-item[data-page="feedback"],
[data-role="pwd"] .menu-item[data-page="feedback"] {
    display: flex !important;
}

/* Feedback access denied for admin */
.feedback-admin-denied {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.feedback-admin-denied i {
    font-size: 56px;
    color: #e74c3c;
    margin-bottom: 16px;
}

.feedback-admin-denied h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.feedback-admin-denied p {
    color: #999;
    font-size: 16px;
    margin: 0 0 20px 0;
}

/* ========================================
   HIDE FEEDBACK FOR ADMIN - CSS FALLBACK
   ======================================== */

/* Hide feedback menu for Admin using data attribute */
[data-role="pdao_head"] .menu-item[data-page="feedback"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Make sure it's visible for others */
[data-role="pwd"] .menu-item[data-page="feedback"],
[data-role="pdao_staff"] .menu-item[data-page="feedback"] {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Additional selector for safety */
body[data-role="pdao_head"] .sidebar-menu .menu-item[data-page="feedback"] {
    display: none !important;
}


/* ============================================
   PROFESSIONAL DASHBOARD REDESIGN
   ============================================ */

/* ===== ADMIN PANEL - PROFESSIONAL ===== */
.admin-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    border: 1px solid #E2E8E4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-panel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.admin-panel-header {
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.admin-panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-panel-header h3 i {
    color: rgba(255, 255, 255, 0.8);
}

.admin-panel-header .role-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-panel-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    padding: 22px 24px;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

.admin-panel-actions .btn {
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    justify-content: flex-start;
    gap: 10px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.2px;
}

.admin-panel-actions .btn-primary {
    background: #1a6d3c;
    color: white;
    border-color: #1a6d3c;
}

.admin-panel-actions .btn-primary:hover {
    background: #0d4a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 109, 60, 0.3);
}

.admin-panel-actions .btn-warning {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
}

.admin-panel-actions .btn-warning:hover {
    background: #d68910;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.admin-panel-actions .btn-danger {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.admin-panel-actions .btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.admin-panel-actions .btn-success {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.admin-panel-actions .btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.admin-panel-actions .btn-info {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.admin-panel-actions .btn-info:hover {
    background: #2e86c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.admin-panel-actions .btn-secondary {
    background: #95a5a6;
    color: white;
    border-color: #95a5a6;
}

.admin-panel-actions .btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* ===== STATS GRID - PROFESSIONAL ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    border: 1px solid #E8ECF1;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #D1D9E0;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, #4CAF50);
    border-radius: 14px 14px 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    font-size: 22px;
    color: var(--stat-color, #1a6d3c);
    margin-bottom: 8px;
    background: rgba(26, 109, 60, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #8e8e8e;
    font-weight: 500;
}

.stat-card .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 6px;
}

.stat-change.up {
    color: #27ae60;
    background: #e8f5e9;
}

.stat-change.down {
    color: #e74c3c;
    background: #ffebee;
}

/* ===== CHARTS - PROFESSIONAL ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #E8ECF1;
    transition: all 0.25s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card h3 i {
    color: #1a6d3c;
}

.chart-container {
    height: 240px;
    position: relative;
}

/* ===== ACTIVITIES - PROFESSIONAL ===== */
.activities-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #E8ECF1;
}

.activities-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activities-section h3 i {
    color: #1a6d3c;
}

.recent-activities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f0f1f2;
}

.activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-user {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.activity-action {
    font-size: 13px;
    color: #555;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* ===== TOP BAR - PROFESSIONAL ===== */
.top-bar {
    background: white;
    border-radius: 14px;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.top-bar-left h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.top-bar-left h2 i {
    color: #1a6d3c;
    margin-right: 10px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.user-role {
    display: block;
    font-size: 11px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f0f0f0;
    color: #1a6d3c;
}

.notification-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ============================================
   RESPONSIVE - PROFESSIONAL
   ============================================ */

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-panel-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-panel-actions {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .top-bar-left h2 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-panel-actions .btn {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .user-name {
        font-size: 13px;
    }
}

/* ============================================
   USER MANAGEMENT - PROFESSIONAL DESIGN
   ============================================ */

.user-management-modal {
    max-width: 900px !important;
}

/* ===== UM STATS ===== */
.um-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.um-stat {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.um-stat:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.um-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.um-stat-label {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 500;
}

/* ===== UM SEARCH ===== */
.um-search {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.um-search-wrapper {
    flex: 1;
    position: relative;
}

.um-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
}

.um-search-wrapper input {
    padding-left: 40px !important;
    border-radius: 10px !important;
    border: 2px solid #e8ecf1 !important;
    transition: all 0.3s ease !important;
}

.um-search-wrapper input:focus {
    border-color: #1a6d3c !important;
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.08) !important;
}

#um-add-user-btn {
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ===== UM TABLE ===== */
.um-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.um-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.um-table thead {
    background: #f8f9fa;
}

.um-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
}

.um-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.um-table tbody tr {
    transition: all 0.3s ease;
}

.um-table tbody tr:hover {
    background: #f8f9fa;
}

.um-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== UM USER INFO ===== */
.um-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.um-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 18px;
}

.um-user-name {
    font-weight: 600;
    color: #1a1a2e;
}

.um-user-role-label {
    font-size: 12px;
    color: #999;
}

.um-id {
    font-weight: 600;
    color: #999;
    font-size: 13px;
}

.um-email {
    color: #555;
    font-size: 13px;
}

/* ===== ROLE BADGES ===== */
.um-role-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.um-role-badge.admin {
    background: #e3f2fd;
    color: #0d47a1;
}

.um-role-badge.staff {
    background: #fff3e0;
    color: #e65100;
}

.um-role-badge.pwd {
    background: #e8f5e9;
    color: #1a6d3c;
}

/* ===== STATUS BADGES ===== */
.um-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.um-status i {
    font-size: 8px;
}

.um-status.active {
    color: #27ae60;
}

.um-status.inactive {
    color: #e74c3c;
}

/* ===== ACTION BUTTONS ===== */
.um-actions {
    display: flex;
    gap: 6px;
}

.um-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.um-action-btn.view {
    background: #e8f5e9;
    color: #1a6d3c;
}

.um-action-btn.view:hover {
    background: #1a6d3c;
    color: white;
    transform: scale(1.05);
}

.um-action-btn.edit {
    background: #fff3e0;
    color: #f39c12;
}

.um-action-btn.edit:hover {
    background: #f39c12;
    color: white;
    transform: scale(1.05);
}

.um-action-btn.delete {
    background: #ffebee;
    color: #e74c3c;
}

.um-action-btn.delete:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.um-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.um-action-btn:disabled:hover {
    transform: none;
}

/* ===== EMPTY / LOADING ===== */
.um-loading,
.um-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.um-empty i {
    font-size: 40px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE USER MANAGEMENT
   ============================================ */

@media (max-width: 768px) {
    .um-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .um-search {
        flex-direction: column;
    }
    
    #um-add-user-btn {
        width: 100%;
        justify-content: center;
    }
    
    .um-table th,
    .um-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .um-actions {
        flex-wrap: wrap;
    }
    
    .um-user-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .um-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .um-stat {
        padding: 10px 12px;
    }
    
    .um-stat-number {
        font-size: 18px;
    }
    
    .um-table {
        font-size: 12px;
    }
    
    .um-table th,
    .um-table td {
        padding: 8px 10px;
    }
    
    .um-user-name {
        font-size: 13px;
    }
    
    .um-role-badge {
        font-size: 10px;
        padding: 2px 10px;
    }
}

/* ============================================
   APPLICATIONS MANAGEMENT - PROFESSIONAL DESIGN
   ============================================ */

.applications-modal {
    max-width: 1000px !important;
}

/* ===== APP STATS ===== */
.app-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.app-stat {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 3px solid #1a6d3c;
}

.app-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.app-stat.pending {
    border-left-color: #f39c12;
}

.app-stat.approved {
    border-left-color: #27ae60;
}

.app-stat.rejected {
    border-left-color: #e74c3c;
}

.app-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.app-stat-label {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 500;
}

.app-stat.pending .app-stat-number {
    color: #f39c12;
}

.app-stat.approved .app-stat-number {
    color: #27ae60;
}

.app-stat.rejected .app-stat-number {
    color: #e74c3c;
}

/* ===== APP FILTERS ===== */
.app-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.app-search-wrapper {
    flex: 1;
    position: relative;
}

.app-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
}

.app-search-wrapper input {
    padding-left: 40px !important;
    border-radius: 10px !important;
    border: 2px solid #e8ecf1 !important;
    transition: all 0.3s ease !important;
}

.app-search-wrapper input:focus {
    border-color: #1a6d3c !important;
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.08) !important;
}

#app-status-filter {
    min-width: 140px;
    border-radius: 10px !important;
    border: 2px solid #e8ecf1 !important;
    transition: all 0.3s ease !important;
    padding: 12px 16px !important;
}

#app-status-filter:focus {
    border-color: #1a6d3c !important;
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.08) !important;
}

/* ===== APP TABLE ===== */
.app-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.app-table thead {
    background: #f8f9fa;
}

.app-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
}

.app-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.app-table tbody tr {
    transition: all 0.3s ease;
}

.app-table tbody tr:hover {
    background: #f8f9fa;
}

.app-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== APP USER INFO ===== */
.app-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 18px;
}

.app-user-name {
    font-weight: 600;
    color: #1a1a2e;
}

.app-user-email {
    font-size: 12px;
    color: #999;
}

/* ===== APP PROGRAM INFO ===== */
.app-program-name {
    font-weight: 500;
    color: #1a1a2e;
}

.app-program-type {
    font-size: 12px;
    color: #999;
}

/* ===== APP STATUS BADGES ===== */
.app-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.app-status-badge.pending {
    background: #fff3e0;
    color: #f39c12;
}

.app-status-badge.approved {
    background: #e8f5e9;
    color: #27ae60;
}

.app-status-badge.rejected {
    background: #ffebee;
    color: #e74c3c;
}

.app-status-badge.appealed {
    background: #e8eaf6;
    color: #5c6bc0;
}

.app-status-badge.completed {
    background: #e0f7fa;
    color: #00838f;
}

/* ===== APP DATE ===== */
.app-date {
    font-size: 13px;
    color: #666;
}

/* ===== APP ACTION BUTTONS ===== */
.app-actions {
    display: flex;
    gap: 6px;
}

.app-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.app-action-btn.view {
    background: #e3f2fd;
    color: #1565c0;
}

.app-action-btn.view:hover {
    background: #1565c0;
    color: white;
    transform: scale(1.05);
}

.app-action-btn.approve {
    background: #e8f5e9;
    color: #27ae60;
}

.app-action-btn.approve:hover {
    background: #27ae60;
    color: white;
    transform: scale(1.05);
}

.app-action-btn.reject {
    background: #ffebee;
    color: #e74c3c;
}

.app-action-btn.reject:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.app-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== EMPTY / LOADING ===== */
.app-loading,
.app-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.app-empty i {
    font-size: 40px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE APPLICATIONS
   ============================================ */

@media (max-width: 768px) {
    .app-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-filters {
        flex-direction: column;
    }
    
    #app-status-filter {
        min-width: 100%;
    }
    
    .app-table th,
    .app-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .app-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .app-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .app-stat {
        padding: 10px 12px;
    }
    
    .app-stat-number {
        font-size: 18px;
    }
    
    .app-table {
        font-size: 12px;
    }
    
    .app-table th,
    .app-table td {
        padding: 8px 10px;
    }
    
    .app-user-name {
        font-size: 13px;
    }
}

/* ============================================
   CREATE PROGRAM & EVENT MODALS
   ============================================ */

.create-program-modal,
.create-event-modal {
    max-width: 600px !important;
}

.create-program-modal .modal-body,
.create-event-modal .modal-body {
    padding: 24px 32px 32px !important;
}

.create-program-modal .form-actions,
.create-event-modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.create-program-modal .form-actions .btn,
.create-event-modal .form-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

#cp-submit-btn,
#ce-submit-btn {
    background: linear-gradient(135deg, #1a6d3c 0%, #0d4a2a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#cp-submit-btn:hover,
#ce-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 109, 60, 0.35);
}

#cp-submit-btn:disabled,
#ce-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

#cp-cancel-btn,
#ce-cancel-btn {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
}

#cp-cancel-btn:hover,
#ce-cancel-btn:hover {
    background: #e8e8e8;
}

.create-program-modal .form-hint,
.create-event-modal .form-hint {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

/* Remove spin buttons from number inputs */
#cp-budget::-webkit-inner-spin-button,
#cp-budget::-webkit-outer-spin-button,
#ce-capacity::-webkit-inner-spin-button,
#ce-capacity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .create-program-modal,
    .create-event-modal {
        max-width: 100% !important;
        margin: 10px !important;
    }
    
    .create-program-modal .modal-body,
    .create-event-modal .modal-body {
        padding: 16px 18px 24px !important;
    }
    
    .create-program-modal .form-actions,
    .create-event-modal .form-actions {
        flex-direction: column;
    }
    
    #cp-submit-btn,
    #ce-submit-btn,
    #cp-cancel-btn,
    #ce-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   NOTIFICATION SIDEBAR - FACEBOOK STYLE
   ============================================ */

.notification-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-sidebar.open {
    right: 0;
}

/* ===== OVERLAY ===== */
.notification-sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification-sidebar.open::before {
    opacity: 1;
    pointer-events: auto;
}

/* ===== HEADER ===== */
.notification-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    flex-shrink: 0;
}

.notification-sidebar-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-sidebar-title i {
    font-size: 22px;
    color: #1a6d3c;
}

.notification-sidebar-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.notification-count {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 4px;
}

.notification-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notification-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* ===== BODY ===== */
.notification-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.notification-sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.notification-sidebar-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.notification-sidebar-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ===== ITEMS ===== */
.notification-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.notification-message {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.notification-time i {
    margin-right: 4px;
    font-size: 10px;
}

.notification-action-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-action-btn:hover {
    background: #f0f0f0;
    color: #1a6d3c;
}

/* ===== EMPTY STATE ===== */
.notification-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.notification-empty i {
    font-size: 48px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}

.notification-empty p {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 0;
}

.notification-empty span {
    font-size: 13px;
    color: #bbb;
}

/* ===== FOOTER ===== */
.notification-sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: white;
    flex-shrink: 0;
}

.notification-mark-all {
    background: none;
    border: none;
    color: #1a6d3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.notification-mark-all:hover {
    background: #e8f5e9;
}

/* ============================================
   RESPONSIVE NOTIFICATIONS
   ============================================ */

@media (max-width: 768px) {
    .notification-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .notification-sidebar.open {
        right: 0;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .notification-sidebar-title h3 {
        font-size: 16px;
    }
    
    .notification-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* ============================================
   PROGRAM DETAILS, EDIT, DELETE MODALS
   ============================================ */

.program-details-modal {
    max-width: 650px !important;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pd-item {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
}

.pd-item.full-width {
    grid-column: 1 / -1;
}

.pd-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pd-item p {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0;
    word-wrap: break-word;
}

/* Edit Program Modal */
.edit-program-modal {
    max-width: 600px !important;
}

.edit-program-modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.edit-program-modal .form-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

#ep-submit-btn {
    background: linear-gradient(135deg, #1a6d3c 0%, #0d4a2a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#ep-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 109, 60, 0.35);
}

#ep-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Delete Confirmation Modal */
.delete-confirmation-modal {
    max-width: 450px !important;
}

.dc-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffebee;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 16px;
}

.dc-warning i {
    font-size: 24px;
    color: #e74c3c;
}

.dc-warning p {
    color: #c0392b;
    margin: 0;
    font-size: 14px;
}

#dc-program-info {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

#dc-program-info p {
    margin: 0;
    color: #555;
}

#dc-program-name {
    font-weight: 600;
    color: #1a1a2e;
}

/* Program Actions in Cards */
.program-actions .btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.program-actions .btn-warning {
    background: #f39c12;
    color: white;
}

.program-actions .btn-warning:hover {
    background: #d68910;
}

.program-actions .btn-danger {
    background: #e74c3c;
    color: white;
}

.program-actions .btn-danger:hover {
    background: #c0392b;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .program-details-modal,
    .edit-program-modal,
    .delete-confirmation-modal {
        max-width: 100% !important;
        margin: 10px !important;
    }
    
    .pd-grid {
        grid-template-columns: 1fr;
    }
    
    .edit-program-modal .form-actions {
        flex-direction: column;
    }
    
    #ep-submit-btn,
    #ep-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pd-item {
        padding: 10px 12px;
    }
    
    .pd-item p {
        font-size: 14px;
    }
}

/* ============================================
   EDIT EVENT MODAL
   ============================================ */

.edit-event-modal {
    max-width: 600px !important;
}

.edit-event-modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.edit-event-modal .form-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

#ee-submit-btn {
    background: linear-gradient(135deg, #1a6d3c 0%, #0d4a2a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#ee-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 109, 60, 0.35);
}

#ee-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   DELETE EVENT CONFIRMATION
   ============================================ */

#dec-event-info {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#dec-event-info p {
    margin: 0;
    color: #555;
}

#dec-event-name,
#dec-event-date {
    font-weight: 600;
    color: #1a1a2e;
}

/* ============================================
   EVENT CARD ACTIONS
   ============================================ */

.event-actions .btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.event-actions .btn-warning {
    background: #f39c12;
    color: white;
}

.event-actions .btn-warning:hover {
    background: #d68910;
}

.event-actions .btn-danger {
    background: #e74c3c;
    color: white;
}

.event-actions .btn-danger:hover {
    background: #c0392b;
}

.event-actions .btn-outline {
    background: transparent;
    border: 1px solid #1a6d3c;
    color: #1a6d3c;
}

.event-actions .btn-outline:hover {
    background: #1a6d3c;
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .edit-event-modal {
        max-width: 100% !important;
        margin: 10px !important;
    }
    
    .edit-event-modal .form-actions {
        flex-direction: column;
    }
    
    #ee-submit-btn,
    #ee-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .event-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .event-actions .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PROFESSIONAL PROFILE PAGE
   ============================================ */

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    border-radius: 16px;
    padding: 30px 35px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #1a6d3c;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(26, 109, 60, 0.15);
}

.profile-avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar-status.active {
    color: #27ae60;
}

.profile-avatar-status.inactive {
    color: #e74c3c;
}

.profile-header-info {
    flex: 1;
}

.profile-header-info h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.profile-header-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.profile-role-badge.admin {
    background: #e3f2fd;
    color: #0d47a1;
}

.profile-role-badge.staff {
    background: #fff3e0;
    color: #e65100;
}

.profile-role-badge.pwd {
    background: #e8f5e9;
    color: #1a6d3c;
}

.profile-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
}

.profile-header-subtitle {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.profile-header-subtitle i {
    margin-right: 6px;
}

/* ===== PROFILE STATS ===== */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat-card {
    background: white;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a6d3c;
}

.profile-stat-content {
    flex: 1;
}

.profile-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.profile-stat-label {
    font-size: 13px;
    color: #999;
}

/* ===== PROFILE DETAILS ===== */
.profile-details-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-detail-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-detail-card.full-width {
    grid-column: 1 / -1;
}

.profile-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

.profile-detail-header i {
    font-size: 18px;
    color: #1a6d3c;
}

.profile-detail-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.profile-detail-body {
    padding: 16px 20px;
}

.profile-detail-item {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.profile-detail-item:last-child {
    border-bottom: none;
}

.profile-detail-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-detail-item p {
    font-size: 15px;
    color: #1a1a2e;
    margin: 2px 0 0 0;
    font-weight: 500;
}

.profile-detail-item .btn-sm {
    margin-top: 6px;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.profile-status-badge.active {
    color: #27ae60;
    background: #e8f5e9;
}

.profile-status-badge.inactive {
    color: #e74c3c;
    background: #ffebee;
}

/* ===== QUICK ACTIONS ===== */
.profile-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.profile-quick-actions .btn {
    padding: 10px 22px;
    font-size: 14px;
}

.profile-quick-actions .btn-outline {
    background: transparent;
    border: 2px solid #1a6d3c;
    color: #1a6d3c;
}

.profile-quick-actions .btn-outline:hover {
    background: #1a6d3c;
    color: white;
}

/* ============================================
   CHANGE PASSWORD MODAL
   ============================================ */

.change-password-modal {
    max-width: 450px !important;
}

.change-password-modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.change-password-modal .form-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

#cp-submit-btn {
    background: linear-gradient(135deg, #1a6d3c 0%, #0d4a2a 100%);
    color: white;
    border: none;
}

#cp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 109, 60, 0.35);
}

#cp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE PROFILE
   ============================================ */

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .profile-header-meta {
        justify-content: center;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-details-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .profile-detail-card.full-width {
        grid-column: auto;
    }
    
    .profile-quick-actions {
        flex-direction: column;
    }
    
    .profile-quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .profile-header-info h1 {
        font-size: 20px;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .profile-stat-card {
        padding: 12px 14px;
    }
    
    .profile-stat-number {
        font-size: 18px;
    }
    
    .change-password-modal {
        max-width: 100% !important;
        margin: 10px !important;
    }
    
    .change-password-modal .form-actions {
        flex-direction: column;
    }
}

/* ============================================
   PROFESSIONAL DASHBOARD HEADER
   ============================================ */

#page-dashboard .page-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #E8ECF1;
    border-left: 4px solid #4CAF50;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

#page-dashboard .page-header:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

#page-dashboard .page-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#page-dashboard .page-header h2 i {
    font-size: 24px;
    color: #1a6d3c;
}

#page-dashboard .page-header h2 span {
    color: #1a1a2e;
}

/* Role Badge in Header */
.dashboard-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.dashboard-role-badge.pdao_head {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.dashboard-role-badge.pdao_staff {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.dashboard-role-badge.pwd {
    background: #e8f5e9;
    color: #1a6d3c;
    border: 1px solid #a5d6a7;
}

.dashboard-role-badge i {
    font-size: 12px;
}

/* Dashboard Subtitle */
#page-dashboard .page-header p {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#page-dashboard .page-header p strong {
    color: #1a6d3c;
    font-weight: 600;
}

.dashboard-time {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

/* ============================================
   DASHBOARD STATS - PROFESSIONAL
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, #1a6d3c);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(26, 109, 60, 0.08);
    color: var(--stat-color, #1a6d3c);
    font-size: 20px;
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    display: block;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #8e8e8e;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.stat-card .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 6px;
}

.stat-change.up {
    color: #27ae60;
    background: #e8f5e9;
}

.stat-change.down {
    color: #e74c3c;
    background: #ffebee;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    #page-dashboard .page-header {
        padding: 20px 18px;
    }
    
    #page-dashboard .page-header h2 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    #page-dashboard .page-header p {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .dashboard-role-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .dashboard-time {
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px 18px;
    }
    
    .stat-card .stat-number {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    #page-dashboard .page-header {
        padding: 16px 14px;
    }
    
    #page-dashboard .page-header h2 {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-number {
        font-size: 20px;
    }
}


/* ============================================
   ADD USER MODAL - PROFESSIONAL DESIGN
   ============================================ */

.add-user-modal {
    max-width: 620px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODAL HEADER ===== */
.add-user-modal .modal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.add-user-modal .modal-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.add-user-modal .modal-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a6d3c, #0d4a2a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.add-user-modal .modal-header-left h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.add-user-modal .modal-header-left p {
    font-size: 13px;
    color: #8e8e8e;
    margin: 2px 0 0 0;
}

.add-user-modal .close-modal {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.add-user-modal .close-modal:hover {
    background: #ffebee;
    color: #e74c3c;
    transform: rotate(90deg);
}

/* ===== MODAL BODY ===== */
.add-user-modal .modal-body {
    padding: 28px 32px 32px;
}

/* ===== FORM GROUPS ===== */
.add-user-form .form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.add-user-form .form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.add-user-form .form-group-modern label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.add-user-form .form-group-modern label i {
    color: #1a6d3c;
    font-size: 13px;
}

.add-user-form .form-group-modern .required {
    color: #e74c3c;
    font-weight: 700;
}

.add-user-form .form-group-modern .form-hint {
    font-size: 11px;
    color: #b0b8c4;
    margin-top: 2px;
}

/* ===== INPUT FIELD ===== */
.add-user-form .input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.add-user-form .input-field .input-icon {
    position: absolute;
    left: 14px;
    color: #b0b8c4;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.add-user-form .input-field input,
.add-user-form .input-field select {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
    color: #1a1a2e;
    appearance: none;
    -webkit-appearance: none;
}

.add-user-form .input-field select {
    padding-right: 40px;
    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='%238e8e8e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.add-user-form .input-field input:focus,
.add-user-form .input-field select:focus {
    border-color: #1a6d3c;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.08);
}

.add-user-form .input-field input:focus ~ .input-icon,
.add-user-form .input-field select:focus ~ .input-icon {
    color: #1a6d3c;
}

.add-user-form .input-field input::placeholder,
.add-user-form .input-field select::placeholder {
    color: #b0b8c4;
}

/* ===== GENERATE PASSWORD BUTTON ===== */
.generate-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #b0b8c4;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.generate-password-btn:hover {
    color: #1a6d3c;
    transform: rotate(180deg);
}

/* ===== ROLE PREVIEW ===== */
.role-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px 20px;
    margin-top: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #1a6d3c;
    transition: all 0.3s ease;
}

.role-preview:hover {
    background: #f0f1f2;
}

.role-preview-icon {
    width: 40px;
    height: 40px;
    background: rgba(26, 109, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 18px;
    flex-shrink: 0;
}

.role-preview-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 2px 0;
}

.role-preview-info p {
    font-size: 13px;
    color: #8e8e8e;
    margin: 0;
}

/* ===== FORM ACTIONS ===== */
.form-actions-modern {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-actions-modern .btn-cancel {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.form-actions-modern .btn-cancel:hover {
    background: #e8e8e8;
}

.form-actions-modern .btn-submit {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #1a6d3c, #0d4a2a);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(26, 109, 60, 0.25);
}

.form-actions-modern .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 109, 60, 0.35);
}

.form-actions-modern .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   RESPONSIVE ADD USER MODAL
   ============================================ */

@media (max-width: 768px) {
    .add-user-modal {
        max-width: 100% !important;
        margin: 10px !important;
        border-radius: 16px !important;
    }
    
    .add-user-modal .modal-header {
        padding: 20px 18px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .add-user-modal .modal-header-left {
        gap: 12px;
    }
    
    .add-user-modal .modal-header-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .add-user-modal .modal-header-left h2 {
        font-size: 17px;
    }
    
    .add-user-modal .modal-body {
        padding: 20px 18px 24px;
    }
    
    .add-user-form .form-row-modern {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }
    
    .add-user-form .input-field input,
    .add-user-form .input-field select {
        padding: 10px 14px 10px 38px;
        font-size: 13px;
    }
    
    .role-preview {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .form-actions-modern {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions-modern .btn-cancel,
    .form-actions-modern .btn-submit {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .add-user-modal .modal-header {
        padding: 16px 14px 12px;
    }
    
    .add-user-modal .modal-header-left h2 {
        font-size: 15px;
    }
    
    .add-user-modal .modal-header-left p {
        font-size: 12px;
    }
    
    .add-user-modal .modal-body {
        padding: 16px 14px 18px;
    }
    
    .add-user-form .input-field input,
    .add-user-form .input-field select {
        padding: 9px 12px 9px 34px;
        font-size: 12px;
    }
    
    .add-user-form .input-field .input-icon {
        font-size: 13px;
        left: 11px;
    }
    
    .add-user-form .form-group-modern label {
        font-size: 12px;
    }
    
    .role-preview {
        padding: 10px 14px;
        gap: 12px;
    }
    
    .role-preview-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .role-preview-info h4 {
        font-size: 12px;
    }
    
    .role-preview-info p {
        font-size: 12px;
    }
}

/* ============================================
   ADD USER MODAL - SCROLLABLE FIX
   ============================================ */

/* Make modal scrollable */
.add-user-modal {
    max-width: 620px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column !important;
}

/* Modal body - scrollable */
.add-user-modal .modal-body {
    padding: 28px 32px 32px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: calc(90vh - 140px) !important;
}

/* Custom scrollbar */
.add-user-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.add-user-modal .modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.add-user-modal .modal-body::-webkit-scrollbar-thumb {
    background: #1a6d3c;
    border-radius: 10px;
}

.add-user-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #0d4a2a;
}

/* Firefox scrollbar */
.add-user-modal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #1a6d3c #f0f0f0;
}

/* ===== MODAL HEADER - FIXED ===== */
.add-user-modal .modal-header {
    padding: 22px 32px 18px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    flex-shrink: 0 !important;
    border-radius: 20px 20px 0 0 !important;
}

/* ===== MODAL FOOTER / ACTIONS ===== */
.add-user-modal .form-actions-modern {
    display: flex !important;
    gap: 12px !important;
    margin-top: 8px !important;
    padding-top: 18px !important;
    border-top: 1px solid #f0f0f0 !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-radius: 0 0 20px 20px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .add-user-modal {
        max-width: 100% !important;
        margin: 10px !important;
        border-radius: 16px !important;
        max-height: 95vh !important;
    }
    
    .add-user-modal .modal-body {
        padding: 18px 18px 20px !important;
        max-height: calc(95vh - 130px) !important;
    }
    
    .add-user-modal .modal-header {
        padding: 16px 18px 14px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .add-user-modal .modal-body {
        padding: 14px 14px 16px !important;
        max-height: calc(95vh - 120px) !important;
    }
    
    .add-user-modal .modal-header {
        padding: 12px 14px 12px !important;
    }
}

/* ============================================
   SYSTEM LOGS - PROFESSIONAL DESIGN
   ============================================ */

.system-logs-modal {
    max-width: 1100px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
}

.system-logs-modal .modal-header {
    padding: 22px 32px 18px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    flex-shrink: 0 !important;
    border-radius: 20px 20px 0 0 !important;
}

.system-logs-modal .modal-body {
    padding: 24px 32px 20px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: calc(90vh - 160px) !important;
}

.system-logs-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.system-logs-modal .modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.system-logs-modal .modal-body::-webkit-scrollbar-thumb {
    background: #1a6d3c;
    border-radius: 10px;
}

/* ===== LOG STATS ===== */
.sl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sl-stat {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    border-left: 3px solid #1a6d3c;
}

.sl-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.sl-stat-label {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 500;
}

/* ===== FILTERS ===== */
.sl-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.sl-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.sl-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.sl-search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
}

.sl-search-wrapper input {
    padding-left: 36px !important;
    border-radius: 10px !important;
    border: 2px solid #e8ecf1 !important;
    height: 40px;
    width: 100%;
}

.sl-filter-group select,
.sl-filter-group input[type="date"] {
    height: 40px;
    border-radius: 10px !important;
    border: 2px solid #e8ecf1 !important;
    padding: 0 12px !important;
    background: #fafbfc;
    min-width: 130px;
}

.sl-filter-group .btn {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

.sl-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.sl-actions .btn {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

/* ===== TABLE ===== */
.sl-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.sl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sl-table thead {
    background: #f8f9fa;
}

.sl-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
}

.sl-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.sl-table tbody tr:hover {
    background: #f8f9fa;
}

/* ===== USER INFO ===== */
.sl-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 16px;
}

.sl-user-name {
    font-weight: 600;
    color: #1a1a2e;
}

.sl-user-email {
    font-size: 11px;
    color: #999;
}

/* ===== BADGES ===== */
.sl-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sl-badge-success { background: #e8f5e9; color: #27ae60; }
.sl-badge-secondary { background: #f5f5f5; color: #8e8e8e; }
.sl-badge-info { background: #e3f2fd; color: #0d47a1; }
.sl-badge-primary { background: #e8f5e9; color: #1a6d3c; }
.sl-badge-warning { background: #fff3e0; color: #f39c12; }
.sl-badge-danger { background: #ffebee; color: #e74c3c; }

/* ===== PAGINATION ===== */
.sl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 0 4px;
}

.sl-page-btn {
    padding: 8px 18px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    color: #555;
}

.sl-page-btn:hover:not(:disabled) {
    border-color: #1a6d3c;
    color: #1a6d3c;
}

.sl-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#sl-page-info {
    font-size: 13px;
    color: #8e8e8e;
}

/* ===== EMPTY / LOADING ===== */
.sl-loading,
.sl-empty,
.sl-error {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.sl-empty i,
.sl-error i {
    font-size: 40px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}

.sl-error i {
    color: #e74c3c;
}

/* ============================================
   RESPONSIVE SYSTEM LOGS
   ============================================ */

@media (max-width: 992px) {
    .system-logs-modal {
        max-width: 100% !important;
        margin: 10px !important;
        max-height: 95vh !important;
    }
    
    .system-logs-modal .modal-body {
        padding: 16px 16px 16px !important;
        max-height: calc(95vh - 140px) !important;
    }
    
    .sl-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sl-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sl-filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .sl-search-wrapper {
        min-width: 100%;
    }
    
    .sl-filter-group select,
    .sl-filter-group input[type="date"] {
        width: 100%;
        min-width: 100%;
    }
    
    .sl-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .sl-actions .btn {
        flex: 1;
    }
    
    .sl-table {
        font-size: 12px;
    }
    
    .sl-table th,
    .sl-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .sl-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .sl-stat {
        padding: 10px 12px;
    }
    
    .sl-stat-number {
        font-size: 18px;
    }
    
    .sl-user-avatar {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .sl-user-name {
        font-size: 12px;
    }
    
    .sl-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ============================================
   PROGRAMS PAGE - DARK GREEN WITH CLEAR TEXT
   ============================================ */

#page-programs .page-header {
    margin-bottom: 28px;
}

#page-programs .page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#page-programs .page-header h2 i {
    color: oklab(83.905% -0.22258 0.16628);
}

#page-programs .page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin-top: 4px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

/* ===== PROGRAMS GRID ===== */
#programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 4px 0;
}

/* ===== PROGRAM CARD - DARK GREEN ===== */
.program-card {
    background: linear-gradient(145deg, #0a3d23, #155a32) !important;
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Green accent on top */
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, oklab(83.905% -0.22258 0.16628));
    opacity: 0.9;
}

/* Pattern overlay */
.program-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(46, 204, 113, 0.2);
}

/* ===== PROGRAM CARD HEADER ===== */
.program-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.program-card-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    flex: 1;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.program-card-header .status-badge {
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
}

.status-badge.status-active {
    background: rgba(46, 204, 113, 0.25) !important;
    color: #2ecc71 !important;
    border-color: rgba(46, 204, 113, 0.25) !important;
}

.status-badge.status-upcoming {
    background: rgba(243, 156, 18, 0.25) !important;
    color: #f1c40f !important;
    border-color: rgba(243, 156, 18, 0.25) !important;
}

.status-badge.status-completed {
    background: rgba(52, 152, 219, 0.25) !important;
    color: #3498db !important;
    border-color: rgba(52, 152, 219, 0.25) !important;
}

.status-badge.status-cancelled {
    background: rgba(231, 76, 60, 0.25) !important;
    color: #e74c3c !important;
    border-color: rgba(231, 76, 60, 0.25) !important;
}

/* ===== PROGRAM DESCRIPTION ===== */
.program-desc {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 14px 0;
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* ===== PROGRAM DETAILS ===== */
.program-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.program-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.program-details span i {
    color: #2ecc71 !important;
    width: 16px;
    font-size: 14px;
}

.program-details .program-budget {
    font-weight: 700;
    color: #2ecc71 !important;
    font-size: 15px;
}

/* ===== PROGRAM ACTIONS ===== */
.program-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.program-actions .btn-sm {
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

/* Apply button */
.program-actions .btn-sm.btn-primary {
    background: #2ecc71 !important;
    color: #ffffff !important;
}

.program-actions .btn-sm.btn-primary:hover {
    background: #27ae60 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* View button */
.program-actions .btn-sm.btn-info {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.program-actions .btn-sm.btn-info:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Edit button */
.program-actions .btn-sm.btn-warning {
    background: rgba(243, 156, 18, 0.15) !important;
    color: #f1c40f !important;
    border: 1px solid rgba(243, 156, 18, 0.15) !important;
}

.program-actions .btn-sm.btn-warning:hover {
    background: rgba(243, 156, 18, 0.25) !important;
    transform: translateY(-2px);
}

/* Delete button */
.program-actions .btn-sm.btn-danger {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.15) !important;
}

.program-actions .btn-sm.btn-danger:hover {
    background: rgba(231, 76, 60, 0.25) !important;
    transform: translateY(-2px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.empty-state i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   RESPONSIVE PROGRAMS
   ============================================ */

@media (max-width: 768px) {
    #programs-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .program-card {
        padding: 20px 18px;
    }
    
    .program-card-header h3 {
        font-size: 17px;
    }
    
    .program-details {
        gap: 10px;
        flex-direction: column;
    }
    
    .program-actions {
        flex-direction: column;
    }
    
    .program-actions .btn-sm {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .program-card {
        padding: 16px 14px;
        border-radius: 12px;
    }
    
    .program-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .program-card-header .status-badge {
        align-self: flex-start;
        font-size: 10px;
        padding: 3px 12px;
    }
    
    .program-desc {
        font-size: 13px;
        
    }
    
    .program-details span {
        font-size: 12px;
    }
    
    .program-details .program-budget {
        font-size: 14px;
    }
}

/* ============================================
   PROGRAMS PAGE - FORCE GREEN TEXT
   ============================================ */

/* Page Header */
#page-programs .page-header h2 {
    color: #1a6d3c !important;
    text-shadow: none !important;
}

#page-programs .page-header h2 i {
    color: #1a6d3c !important;
}

#page-programs .page-header p {
    color: #1a6d3c !important;
    text-shadow: none !important;
}

/* Program Card Title */
.program-card-header h3 {
    color: #1a6d3c !important;
    text-shadow: none !important;
}

/* Program Description */
.program-desc {
    color: #1a6d3c !important;
    text-shadow: none !important;
}

/* Program Details */
.program-details span {
    color: #1a6d3c !important;
}

.program-details span i {
    color: #1a6d3c !important;
}

.program-details .program-budget {
    color: #1a6d3c !important;
}

/* Status Badge - Keep original colors */
.program-card-header .status-badge {
    color: #ffffff !important;
}

.status-badge.status-active {
    background: #e8f5e9 !important;
    color: #1a6d3c !important;
}

.status-badge.status-upcoming {
    background: #fff3e0 !important;
    color: #f39c12 !important;
}

.status-badge.status-completed {
    background: #e3f2fd !important;
    color: #0d47a1 !important;
}

.status-badge.status-cancelled {
    background: #ffebee !important;
    color: #e74c3c !important;
}

/* ============================================
   PROGRAMS PAGE - VIEW BUTTON FIX
   ============================================ */

/* ===== VIEW BUTTON - MAS KITA ===== */
.program-actions .btn-sm.btn-info {
    background: #1a6d3c !important;
    color: #ffffff !important;
    border: none !important;
}

.program-actions .btn-sm.btn-info:hover {
    background: #0d4a2a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 109, 60, 0.3);
}

/* ===== OTHER BUTTONS - PARA CONSISTENT ===== */

/* Edit button */
.program-actions .btn-sm.btn-warning {
    background: #f39c12 !important;
    color: #ffffff !important;
    border: none !important;
}

.program-actions .btn-sm.btn-warning:hover {
    background: #d68910 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Delete button */
.program-actions .btn-sm.btn-danger {
    background: #e74c3c !important;
    color: #ffffff !important;
    border: none !important;
}

.program-actions .btn-sm.btn-danger:hover {
    background: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Apply button */
.program-actions .btn-sm.btn-primary {
    background: #1a6d3c !important;
    color: #ffffff !important;
    border: none !important;
}

.program-actions .btn-sm.btn-primary:hover {
    background: #0d4a2a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 109, 60, 0.3);
}

/* ============================================
   SIDEBAR - FIX LOGOUT VISIBILITY
   ============================================ */

.sidebar {
    width: 260px;
     background: #4CAF50;
    color: white;
    padding: 20px 0 0 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Sidebar Header - Fixed sa taas */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    flex-shrink: 0;
}

/* Sidebar Menu - Scrollable */
.sidebar-menu {
    list-style: none;
    padding: 0 12px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

/* Menu items */
.sidebar-menu .menu-item {
    margin-bottom: 2px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 700;
}

.sidebar-menu .menu-item a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu .menu-item:hover a {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar-menu .menu-item.active a {
    background: green;
    color: white;
    box-shadow: inset 3px 0 0 #2ecc71;
}

/* Sidebar Footer - Fixed sa baba */
.sidebar-footer {
    padding: 16px 16px 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
}

/* Logout button */
.sidebar-footer .btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-footer .btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.sidebar-footer .btn i {
    font-size: 16px;
}

/* ============================================
   RESPONSIVE SIDEBAR
   ============================================ */

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        top: 0;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
}

/* ============================================
   VIEW USERS MODAL - PROFESSIONAL DESIGN
   ============================================ */

.view-users-modal {
    max-width: 950px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
}

.view-users-modal .modal-header {
    padding: 22px 32px 18px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    flex-shrink: 0 !important;
    border-radius: 20px 20px 0 0 !important;
}

.view-users-modal .modal-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a6d3c, #0d4a2a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.view-users-modal .modal-body {
    padding: 24px 32px 20px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: calc(90vh - 160px) !important;
}

.view-users-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.view-users-modal .modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.view-users-modal .modal-body::-webkit-scrollbar-thumb {
    background: #1a6d3c;
    border-radius: 10px;
}

/* ===== STATS ===== */
.vu-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.vu-stat {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    border-left: 3px solid #1a6d3c;
    transition: all 0.3s ease;
}

.vu-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.vu-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.vu-stat-label {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 500;
}

/* ===== SEARCH ===== */
.vu-search {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.vu-search-wrapper {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.vu-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
}

.vu-search-wrapper input {
    padding-left: 40px !important;
    border-radius: 10px !important;
    border: 2px solid #e8ecf1 !important;
    height: 42px;
    width: 100%;
    font-size: 14px;
}

.vu-search-wrapper input:focus {
    border-color: #1a6d3c !important;
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.08) !important;
}

.vu-filter-group {
    display: flex;
    gap: 10px;
}

.vu-filter-group select {
    height: 42px;
    border-radius: 10px !important;
    border: 2px solid #e8ecf1 !important;
    padding: 0 14px !important;
    background: #fafbfc;
    min-width: 130px;
    font-size: 14px;
}

.vu-filter-group select:focus {
    border-color: #1a6d3c !important;
    box-shadow: 0 0 0 4px rgba(26, 109, 60, 0.08) !important;
}

/* ===== TABLE ===== */
.vu-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.vu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.vu-table thead {
    background: #f8f9fa;
}

.vu-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
}

.vu-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.vu-table tbody tr {
    transition: all 0.3s ease;
}

.vu-table tbody tr:hover {
    background: #f8f9fa;
}

.vu-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== USER INFO ===== */
.vu-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vu-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 18px;
    flex-shrink: 0;
}

.vu-user-name {
    font-weight: 600;
    color: #1a1a2e;
}

.vu-user-role-label {
    font-size: 11px;
    color: #999;
}

/* ===== ROLE BADGES ===== */
.vu-role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.vu-role-badge.admin {
    background: #e3f2fd;
    color: #0d47a1;
}

.vu-role-badge.staff {
    background: #fff3e0;
    color: #e65100;
}

.vu-role-badge.pwd {
    background: #e8f5e9;
    color: #1a6d3c;
}

/* ===== STATUS ===== */
.vu-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.vu-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.vu-status.active .vu-status-dot {
    background: #27ae60;
}

.vu-status.inactive .vu-status-dot {
    background: #e74c3c;
}

.vu-status.active {
    color: #27ae60;
}

.vu-status.inactive {
    color: #e74c3c;
}

/* ===== ID ===== */
.vu-id {
    font-weight: 600;
    color: #999;
    font-size: 13px;
}

.vu-email {
    color: #555;
    font-size: 13px;
}

/* ===== FOOTER ===== */
.vu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

#vu-result-count {
    font-size: 13px;
    color: #8e8e8e;
}

/* ===== EMPTY / LOADING ===== */
.vu-loading,
.vu-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.vu-empty i {
    font-size: 40px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE VIEW USERS
   ============================================ */

@media (max-width: 992px) {
    .view-users-modal {
        max-width: 100% !important;
        margin: 10px !important;
        max-height: 95vh !important;
    }
    
    .view-users-modal .modal-body {
        padding: 16px 16px 16px !important;
        max-height: calc(95vh - 140px) !important;
    }
}

@media (max-width: 768px) {
    .vu-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .vu-search {
        flex-direction: column;
    }
    
    .vu-search-wrapper {
        min-width: 100%;
    }
    
    .vu-filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .vu-filter-group select {
        width: 100%;
        min-width: 100%;
    }
    
    .vu-table {
        font-size: 12px;
    }
    
    .vu-table th,
    .vu-table td {
        padding: 8px 10px;
    }
    
    .vu-user-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .vu-user-name {
        font-size: 13px;
    }
    
    .vu-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .vu-stats {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .vu-stat {
        padding: 10px 12px;
    }
    
    .vu-stat-number {
        font-size: 18px;
    }
    
    .vu-table {
        font-size: 11px;
    }
    
    .vu-table th,
    .vu-table td {
        padding: 6px 8px;
    }
    
    .vu-role-badge {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .vu-id {
        font-size: 11px;
    }
    
    .vu-email {
        font-size: 11px;
    }
}

/* ============================================
   NOTIFICATION SIDEBAR - CLOSE BUTTON FIX
   ============================================ */

.notification-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-sidebar.open {
    right: 0;
}

/* ===== OVERLAY ===== */
.notification-sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification-sidebar.open::before {
    opacity: 1;
    pointer-events: auto;
}

/* ===== HEADER ===== */
.notification-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    flex-shrink: 0;
}

.notification-sidebar-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-sidebar-title i {
    font-size: 22px;
    color: #1a6d3c;
}

.notification-sidebar-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.notification-count {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 4px;
}

/* ===== CLOSE BUTTON - FIXED ===== */
.notification-close-btn {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.notification-close-btn:hover {
    background: #ffebee;
    color: #e74c3c;
    transform: rotate(90deg);
}

/* ===== BODY ===== */
.notification-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.notification-sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.notification-sidebar-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.notification-sidebar-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ===== ITEMS ===== */
.notification-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.notification-message {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.notification-time i {
    margin-right: 4px;
    font-size: 10px;
}

.notification-action-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-action-btn:hover {
    background: #f0f0f0;
    color: #1a6d3c;
}

/* ===== EMPTY STATE ===== */
.notification-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.notification-empty i {
    font-size: 48px;
    color: #ddd;
    display: block;
    margin-bottom: 12px;
}

.notification-empty p {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 0;
}

.notification-empty span {
    font-size: 13px;
    color: #bbb;
}

/* ===== FOOTER ===== */
.notification-sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: white;
    flex-shrink: 0;
}

.notification-mark-all {
    background: none;
    border: none;
    color: #1a6d3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.notification-mark-all:hover {
    background: #e8f5e9;
}

/* ============================================
   RESPONSIVE NOTIFICATIONS
   ============================================ */

@media (max-width: 768px) {
    .notification-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .notification-sidebar.open {
        right: 0;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .notification-sidebar-title h3 {
        font-size: 16px;
    }
    
    .notification-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .notification-close-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ============================================
   USER DETAILS MODAL - PROFESSIONAL
   ============================================ */

.user-details-modal {
    max-width: 750px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
}

.user-details-modal .modal-header {
    padding: 22px 32px 18px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    flex-shrink: 0 !important;
    border-radius: 20px 20px 0 0 !important;
}

.user-details-modal .modal-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a6d3c, #0d4a2a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.user-details-modal .modal-body {
    padding: 24px 32px 20px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: calc(90vh - 160px) !important;
}

.user-details-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.user-details-modal .modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.user-details-modal .modal-body::-webkit-scrollbar-thumb {
    background: #1a6d3c;
    border-radius: 10px;
}

/* ===== GRID ===== */
.ud-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== CARDS ===== */
.ud-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ud-card:hover {
    border-color: #e0e0e0;
}

.ud-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.ud-card-header i {
    color: #1a6d3c;
    font-size: 16px;
}

.ud-card-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.ud-card-body {
    padding: 14px 16px;
}

/* ===== FIELDS ===== */
.ud-field {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ud-field:last-child {
    border-bottom: none;
}

.ud-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ud-field p {
    font-size: 14px;
    color: #1a1a2e;
    margin: 2px 0 0 0;
    font-weight: 500;
    word-wrap: break-word;
}

/* ===== COORDINATES ===== */
.ud-coords {
    display: flex;
    gap: 20px;
    padding: 10px 0 0;
    font-size: 13px;
    color: #555;
}

.ud-coords strong {
    color: #1a6d3c;
}

/* ===== ACTIONS ===== */
.ud-actions {
    display: flex;
    justify-content: flex-end;
    padding: 16px 0 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .user-details-modal {
        max-width: 100% !important;
        margin: 10px !important;
        max-height: 95vh !important;
    }
    
    .user-details-modal .modal-body {
        padding: 16px 16px 16px !important;
        max-height: calc(95vh - 140px) !important;
    }
}

@media (max-width: 768px) {
    .ud-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ud-actions {
        justify-content: center;
    }
    
    .ud-coords {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .user-details-modal .modal-header {
        padding: 16px 14px 14px !important;
    }
    
    .user-details-modal .modal-header-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .user-details-modal .modal-header-left h2 {
        font-size: 17px;
    }
    
    .user-details-modal .modal-body {
        padding: 12px 12px 16px !important;
    }
    
    .ud-field p {
        font-size: 13px;
    }
}

/* ============================================
   ANALYTICS PAGE - PROFESSIONAL DESIGN
   ============================================ */

/* ===== OVERVIEW STATS ===== */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.analytics-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.analytics-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.analytics-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.analytics-stat-info {
    flex: 1;
}

.analytics-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.analytics-stat-label {
    font-size: 13px;
    color: #8e8e8e;
    font-weight: 500;
}

.analytics-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.analytics-stat-change.up {
    color: #27ae60;
    background: #e8f5e9;
}

.analytics-stat-change.down {
    color: #e74c3c;
    background: #ffebee;
}

/* ===== CHARTS ROW ===== */
.analytics-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.analytics-chart-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.analytics-chart-box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analytics-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.analytics-chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-chart-header h3 i {
    color: #1a6d3c;
}

.analytics-chart-badge {
    font-size: 11px;
    font-weight: 600;
    color: #1a6d3c;
    background: #e8f5e9;
    padding: 4px 12px;
    border-radius: 12px;
}

.analytics-chart-container {
    height: 240px;
    position: relative;
}

/* ===== TRENDS ===== */
.analytics-trends {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
}

.analytics-trends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.analytics-trends-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-trends-header h3 i {
    color: #1a6d3c;
}

.analytics-trends-filters {
    display: flex;
    gap: 6px;
}

.trend-filter {
    padding: 4px 14px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    background: white;
    font-size: 12px;
    font-weight: 500;
    color: #8e8e8e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.trend-filter:hover {
    border-color: #1a6d3c;
    color: #1a6d3c;
}

.trend-filter.active {
    background: #1a6d3c;
    border-color: #1a6d3c;
    color: white;
}

.analytics-trends-container {
    height: 250px;
    position: relative;
}

/* ===== INSIGHTS (Admin Only) ===== */
.analytics-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.analytics-insight-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.analytics-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.analytics-insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 16px;
    flex-shrink: 0;
}

.analytics-insight-content {
    flex: 1;
}

.analytics-insight-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.analytics-insight-content p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.analytics-insight-content p strong {
    color: #1a6d3c;
}

.analytics-insight-date {
    font-size: 11px;
    color: #b0b8c4;
    display: block;
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE ANALYTICS
   ============================================ */

@media (max-width: 1024px) {
    .analytics-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-charts-row {
        grid-template-columns: 1fr;
    }
    
    .analytics-insights {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-overview {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .analytics-stat-card {
        padding: 16px 18px;
    }
    
    .analytics-stat-number {
        font-size: 22px;
    }
    
    .analytics-trends-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .analytics-insights {
        grid-template-columns: 1fr;
    }
    
    .analytics-chart-container {
        height: 200px;
    }
    
    .analytics-trends-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .analytics-overview {
        grid-template-columns: 1fr;
    }
    
    .analytics-stat-card {
        padding: 14px 16px;
    }
    
    .analytics-stat-number {
        font-size: 20px;
    }
    
    .analytics-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .analytics-chart-box {
        padding: 16px;
    }
    
    .analytics-trends {
        padding: 16px;
    }
    
    .analytics-trends-filters {
        width: 100%;
    }
    
    .trend-filter {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   ANALYTICS PAGE - PROFESSIONAL
   ============================================ */

/* ===== STATS ROW ===== */
.analytics-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-stat-box {
    background: white;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.analytics-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analytics-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.analytics-stat-info {
    flex: 1;
}

.analytics-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.analytics-stat-label {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 500;
}

/* ===== CHARTS GRID ===== */
.analytics-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.analytics-chart-card {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.analytics-chart-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analytics-chart-card.full-width {
    grid-column: 1 / -1;
}

.analytics-chart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.analytics-chart-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytics-chart-title h3 i {
    color: #1a6d3c;
}

.analytics-chart-badge {
    font-size: 10px;
    font-weight: 600;
    color: #1a6d3c;
    background: #e8f5e9;
    padding: 3px 12px;
    border-radius: 12px;
}

.analytics-chart-wrapper {
    height: 220px;
    position: relative;
}

.analytics-chart-wrapper[style*="height:350px"] {
    height: 350px;
}

/* ===== CHART LEGEND ===== */
.analytics-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.analytics-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #555;
}

.analytics-chart-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== ERROR STATE ===== */
.analytics-error {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.analytics-error i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 12px;
    display: block;
}

.analytics-error h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.analytics-error p {
    color: #999;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* ============================================
   RESPONSIVE ANALYTICS
   ============================================ */

@media (max-width: 992px) {
    .analytics-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-chart-card.full-width {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .analytics-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .analytics-stat-box {
        padding: 14px 16px;
    }
    
    .analytics-stat-number {
        font-size: 20px;
    }
    
    .analytics-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .analytics-chart-card {
        padding: 16px;
    }
    
    .analytics-chart-wrapper {
        height: 180px;
    }
    
    .analytics-chart-wrapper[style*="height:350px"] {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .analytics-stats-row {
        grid-template-columns: 1fr;
    }
    
    .analytics-chart-card {
        padding: 12px;
    }
    
    .analytics-chart-wrapper {
        height: 150px;
    }
    
    .analytics-chart-wrapper[style*="height:350px"] {
        height: 200px;
    }
    
    .analytics-chart-title h3 {
        font-size: 13px;
    }
}
/* ============================================
   MONTHLY TRENDS - FULL WIDTH
   ============================================ */

.analytics-trends-container-full {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.analytics-trends-container-full:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analytics-trends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.analytics-trends-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-trends-header h3 i {
    color: #1a6d3c;
}

.analytics-trends-filters {
    display: flex;
    gap: 6px;
}

.trend-filter {
    padding: 4px 14px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    background: white;
    font-size: 12px;
    font-weight: 500;
    color: #8e8e8e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.trend-filter:hover {
    border-color: #1a6d3c;
    color: #1a6d3c;
}

.trend-filter.active {
    background: #1a6d3c;
    border-color: #1a6d3c;
    color: white;
}

.analytics-trends-chart-wrapper {
    height: 250px;
    position: relative;
}

/* ============================================
   INSIGHTS ROW
   ============================================ */

.analytics-insights-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.analytics-insight-card {
    background: white;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
}

.analytics-insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analytics-insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6d3c;
    font-size: 16px;
    flex-shrink: 0;
}

.analytics-insight-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.analytics-insight-content p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.analytics-insight-content p strong {
    color: #1a6d3c;
}

.analytics-insight-date {
    font-size: 11px;
    color: #b0b8c4;
    display: block;
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .analytics-trends-chart-wrapper {
        height: 200px;
    }
    
    .analytics-insights-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-trends-container-full {
        padding: 16px;
    }
    
    .analytics-trends-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .analytics-trends-chart-wrapper {
        height: 180px;
    }
    
    .analytics-insights-row {
        grid-template-columns: 1fr;
    }
    
    .analytics-insight-card {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .analytics-trends-container-full {
        padding: 12px;
    }
    
    .analytics-trends-chart-wrapper {
        height: 150px;
    }
    
    .trend-filter {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* ============================================
   PROFESSIONAL ANALYTICS THEME - LIGHT
   PWD Monitoring System - Cotabato City
   ============================================ */

/* ============================================
   ANALYTICS PAGE HEADER
   ============================================ */
#page-analytics .page-header {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #4F46E5;
    margin-bottom: 28px;
}

#page-analytics .page-header h2 {
    color: #1a1a2e !important;
    font-size: 24px;
    font-weight: 700;
}

#page-analytics .page-header h2 i {
    color: #4F46E5 !important;
}

#page-analytics .page-header p {
    color: #6c757d !important;
}

/* ========================================
   FINAL RESPONSIVE SYSTEM LAYER
   ======================================== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
canvas,
svg,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

.dashboard {
    min-height: 100dvh;
}

.main-content {
    min-width: 0;
    width: calc(100% - 260px);
}

.top-bar,
.page-header,
.form-actions,
.form-actions-modern,
.um-search {
    min-width: 0;
    flex-wrap: wrap;
}

.page,
.card,
.chart-card,
.stat-card,
.activities-section,
.analytics-chart-container {
    min-width: 0;
}

.um-table-wrapper,
.app-table-wrapper,
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.um-table,
.app-table {
    min-width: 680px;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 20px;
    }

    .charts-grid,
    .profile-content-grid,
    .form-row,
    .form-row-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .accessibility-toolbar {
        height: auto;
        min-height: 38px;
        padding: 5px 10px;
    }

    .toolbar-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .toolbar-container::-webkit-scrollbar {
        display: none;
    }

    .language-selector,
    .accessibility-controls {
        flex: 0 0 auto;
    }

    .dashboard {
        padding-top: 38px;
    }

    .sidebar {
        top: 38px;
        bottom: 0;
        height: auto;
        width: min(300px, 86vw);
        transform: translateX(-105%);
        z-index: 1002;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard:has(.sidebar.open)::before {
        content: '';
        position: fixed;
        inset: 38px 0 0;
        z-index: 1001;
        background: rgba(8, 24, 16, 0.48);
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 14px;
    }

    .top-bar {
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 10px;
    }

    .top-bar-left h2 {
        font-size: 18px;
    }

    .user-info {
        max-width: 44vw;
        overflow: hidden;
    }

    .user-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stats-grid,
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-card,
    .chart-card,
    .activities-section,
    .analytics-card,
    .analytics-chart-container {
        padding: 16px;
        border-radius: 12px;
    }

    .chart-container {
        height: 220px;
    }

    .modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-content {
        max-height: calc(100dvh - 20px);
        border-radius: 16px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .modal-header {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    .modal-footer .btn,
    .form-actions .btn,
    .form-actions-modern .btn {
        flex: 1 1 140px;
    }
}

@media (max-width: 480px) {
    .accessibility-toolbar {
        min-height: 34px;
    }

    .dashboard {
        padding-top: 34px;
    }

    .sidebar {
        top: 34px;
    }

    .dashboard:has(.sidebar.open)::before {
        inset: 34px 0 0;
    }

    .main-content {
        padding: 10px;
    }

    .top-bar {
        padding: 12px;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
    }

    .top-bar-right {
        justify-content: space-between;
    }

    .stats-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .page-header h2 {
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    .btn {
        min-height: 42px;
        padding: 10px 16px;
    }

    .btn-sm {
        min-height: 36px;
        padding: 8px 12px;
    }

    .modal {
        padding: 6px;
    }

    .modal-content {
        max-height: calc(100dvh - 12px);
    }

    .modal-header-left {
        min-width: 0;
        max-width: calc(100% - 40px);
    }

    .modal-footer .btn,
    .form-actions .btn,
    .form-actions-modern .btn {
        flex-basis: 100%;
        width: 100%;
    }
}

/* ============================================
   ANALYTICS STATS ROW - 3 CARDS
   ============================================ */
.analytics-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-stat-box {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, #4F46E5);
    opacity: 0.8;
}

.analytics-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.analytics-stat-box .stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.analytics-stat-box .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-stat-box .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(79, 70, 229, 0.08);
    color: #4F46E5;
}

.analytics-stat-box .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    display: block;
}

.analytics-stat-box .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    margin-top: 8px;
}

.analytics-stat-box .stat-change.up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
}

.analytics-stat-box .stat-change.down {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.12);
}

/* ============================================
   ACCENT CHARTS - MINI CHARTS
   ============================================ */
.analytics-accent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-accent-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.analytics-accent-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.analytics-accent-card .accent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.analytics-accent-card .accent-header h4 {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    margin: 0;
}

.analytics-accent-card .accent-header .accent-icon {
    font-size: 18px;
    color: #4F46E5;
}

.analytics-accent-card .accent-number {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.analytics-accent-card .accent-change {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 4px;
}

.analytics-accent-card .accent-change.up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
}

.analytics-accent-card .accent-change.down {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.12);
}

.analytics-accent-card .accent-chart {
    height: 50px;
    margin-top: 8px;
}

/* ============================================
   MONTHLY PERFORMANCE
   ============================================ */
.analytics-monthly {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.analytics-monthly:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.analytics-monthly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.analytics-monthly-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-monthly-header h3 i {
    color: #4F46E5;
}

.analytics-monthly-header .filter-group {
    display: flex;
    gap: 6px;
}

.analytics-monthly-header .filter-btn {
    padding: 4px 16px;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.analytics-monthly-header .filter-btn:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.analytics-monthly-header .filter-btn.active {
    background: #4F46E5;
    border-color: #4F46E5;
    color: white;
}

.analytics-monthly-chart {
    height: 220px;
    position: relative;
}

/* ============================================
   CHARTS GRID
   ============================================ */
.analytics-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.analytics-chart-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.analytics-chart-card.full-width {
    grid-column: 1 / -1;
}

.analytics-chart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.analytics-chart-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-chart-title h3 i {
    color: #4F46E5;
}

.analytics-chart-title .chart-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.08);
    color: #4F46E5;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.analytics-chart-wrapper {
    height: 260px;
    position: relative;
}

.analytics-chart-wrapper.tall {
    height: 300px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .analytics-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .analytics-accent {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .analytics-stat-box {
        padding: 18px 20px;
    }
    
    .analytics-stat-box .stat-number {
        font-size: 24px;
    }
    
    .analytics-accent {
        grid-template-columns: 1fr;
    }
    
    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-chart-wrapper {
        height: 200px;
    }
    
    .analytics-monthly-chart {
        height: 180px;
    }
    
    .analytics-monthly-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .analytics-stats-row {
        grid-template-columns: 1fr;
    }
    
    .analytics-stat-box {
        padding: 14px 16px;
    }
    
    .analytics-stat-box .stat-number {
        font-size: 20px;
    }
    
    .analytics-chart-card {
        padding: 16px;
    }
    
    .analytics-monthly {
        padding: 16px;
    }
    
    .analytics-chart-wrapper {
        height: 180px;
    }
}

/* ============================================
   USER MANAGEMENT - ACTION BUTTONS
   ============================================ */

.um-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.um-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.um-action-btn.view {
    background: #fff3e0;
    color: #f39c12;
}

.um-action-btn.view:hover {
    background: #f39c12;
    color: white;
    transform: scale(1.1);
}

.um-action-btn.edit {
    background: #e3f2fd;
    color: #1976d2;
}

.um-action-btn.edit:hover {
    background: #1976d2;
    color: white;
    transform: scale(1.1);
}

.um-action-btn.delete {
    background: #ffebee;
    color: #e74c3c;
}

.um-action-btn.delete:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.um-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.um-action-btn:disabled:hover {
    transform: none !important;
}

/* ============================================
   DELETE CONFIRMATION MODAL - MODERN DESIGN
   ============================================ */

/* Delete Modal Overlay */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

/* Delete Modal Container */
.delete-modal-container {
    background: white;
    border-radius: 24px;
    padding: 0;
    max-width: 480px;
    width: 92%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: modalSlideIn 0.4s ease;
    overflow: hidden;
}

/* Delete Modal Header */
.delete-modal-header {
    padding: 24px 28px 16px 28px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.delete-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.delete-modal-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffebee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delete-modal-icon-wrapper i {
    font-size: 20px;
    color: #e74c3c;
}

.delete-modal-title {
    margin: 0;
    font-size: 20px;
    color: #1a1a2e;
    font-weight: 700;
}

.delete-modal-subtitle {
    margin: 4px 0 0 56px;
    color: #666;
    font-size: 14px;
}

.delete-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.delete-modal-close:hover {
    color: #333;
}

/* Delete Modal User Info */
.delete-modal-user-info {
    padding: 20px 28px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 16px;
}

.delete-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.delete-modal-avatar.pwd {
    background: #e8f5e9;
    color: #2ecc71;
}

.delete-modal-avatar.staff {
    background: #fff3e0;
    color: #f39c12;
}

.delete-modal-avatar.admin {
    background: #ffebee;
    color: #e74c3c;
}

.delete-modal-user-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a2e;
}

.delete-modal-user-details {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.delete-modal-user-details .separator {
    color: #ddd;
}

.delete-modal-role-badge {
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.delete-modal-role-badge.pwd {
    background: #e8f5e9;
    color: #2ecc71;
}

.delete-modal-role-badge.staff {
    background: #fff3e0;
    color: #f39c12;
}

.delete-modal-role-badge.admin {
    background: #ffebee;
    color: #e74c3c;
}

.delete-modal-status {
    color: #27ae60;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-modal-status .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
}

/* Delete Modal Body */
.delete-modal-body {
    padding: 20px 28px;
}

/* Warning Box - Has Applications */
.delete-modal-warning-apps {
    background: #fff8e1;
    border-left: 4px solid #f39c12;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-modal-warning-apps i {
    color: #f39c12;
    font-size: 16px;
}

.delete-modal-warning-apps strong {
    color: #e67e22;
}

.delete-modal-warning-apps .text {
    color: #856404;
    font-size: 13px;
}

/* Warning Box - No Applications */
.delete-modal-warning-safe {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-modal-warning-safe i {
    color: #27ae60;
    font-size: 16px;
}

.delete-modal-warning-safe .text {
    color: #2e7d32;
    font-size: 13px;
}

/* Permanent Deletion Warning */
.delete-modal-permanent-warning {
    background: #ffebee;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    border: 1px solid #ffcdd2;
}

.delete-modal-permanent-warning i {
    font-size: 24px;
    color: #e74c3c;
    display: block;
    margin-bottom: 8px;
}

.delete-modal-permanent-warning .title {
    font-weight: 600;
    color: #c62828;
    font-size: 15px;
}

.delete-modal-permanent-warning .desc {
    color: #b71c1c;
    font-size: 13px;
    margin-top: 4px;
}

/* Confirmation Input */
.delete-modal-confirm-section {
    padding: 0 28px 20px 28px;
}

.delete-modal-confirm-box {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px 20px;
    border: 2px solid #ffcdd2;
}

.delete-modal-confirm-box label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.delete-modal-confirm-box label i {
    color: #e74c3c;
}

.delete-modal-confirm-box label strong {
    color: #e74c3c;
}

.delete-modal-confirm-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.delete-modal-confirm-input:focus {
    border-color: #e74c3c;
}

.delete-modal-confirm-status {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.delete-modal-confirm-status.success {
    color: #27ae60;
}

/* Delete Modal Footer Buttons */
.delete-modal-footer {
    padding: 16px 28px 24px 28px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.delete-modal-btn-cancel {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    font-family: inherit;
    flex: 1;
    transition: all 0.2s;
}

.delete-modal-btn-cancel:hover {
    background: #eee;
}

.delete-modal-btn-delete {
    padding: 12px 24px;
    background: #e74c3c;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: white;
    font-family: inherit;
    flex: 2;
    transition: all 0.3s;
    opacity: 0.5;
}

.delete-modal-btn-delete:not(:disabled) {
    opacity: 1;
}

.delete-modal-btn-delete:not(:disabled):hover {
    background: #c0392b;
    transform: scale(1.02);
}

.delete-modal-btn-delete:disabled {
    cursor: not-allowed;
}

/* ============================================
   DELETE SUCCESS MODAL
   ============================================ */

.delete-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.delete-success-container {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalSlideIn 0.4s ease;
}

.delete-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.delete-success-icon i {
    font-size: 40px;
    color: #27ae60;
}

.delete-success-title {
    margin: 0 0 8px 0;
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 700;
}

.delete-success-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.delete-success-btn {
    padding: 12px 32px;
    background: #1a6d3c;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.delete-success-btn:hover {
    background: #145a32;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   RESPONSIVE - DELETE MODAL
   ============================================ */

@media (max-width: 640px) {
    .delete-modal-container {
        width: 95%;
        max-width: 100%;
        border-radius: 16px;
    }

    .delete-modal-header {
        padding: 16px 20px;
        flex-wrap: wrap;
    }

    .delete-modal-header-left {
        gap: 10px;
    }

    .delete-modal-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .delete-modal-icon-wrapper i {
        font-size: 16px;
    }

    .delete-modal-title {
        font-size: 17px;
    }

    .delete-modal-subtitle {
        margin-left: 46px;
        font-size: 13px;
    }

    .delete-modal-user-info {
        padding: 14px 20px;
        flex-wrap: wrap;
    }

    .delete-modal-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .delete-modal-body {
        padding: 16px 20px;
    }

    .delete-modal-confirm-section {
        padding: 0 20px 16px 20px;
    }

    .delete-modal-footer {
        padding: 12px 20px 20px 20px;
        flex-direction: column;
    }

    .delete-modal-btn-cancel,
    .delete-modal-btn-delete {
        padding: 14px;
        flex: none;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .delete-modal-confirm-input {
        font-size: 14px;
        padding: 10px 14px;
    }

    .delete-success-container {
        padding: 30px 20px;
    }

    .delete-success-icon {
        width: 56px;
        height: 56px;
    }

    .delete-success-icon i {
        font-size: 30px;
    }
}

@media (max-width: 400px) {
    .delete-modal-container {
        width: 98%;
        border-radius: 12px;
    }

    .delete-modal-header {
        padding: 12px 16px;
    }

    .delete-modal-title {
        font-size: 15px;
    }

    .delete-modal-user-info {
        padding: 12px 16px;
        gap: 10px;
    }

    .delete-modal-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .delete-modal-user-name {
        font-size: 14px;
    }

    .delete-modal-body {
        padding: 12px 16px;
    }

    .delete-modal-confirm-section {
        padding: 0 16px 12px 16px;
    }

    .delete-modal-footer {
        padding: 10px 16px 16px 16px;
    }

    .delete-modal-confirm-input {
        font-size: 12px;
        padding: 8px 12px;
        letter-spacing: 1px;
    }
}

/* ============================================
   ACCESSIBILITY TOOLBAR - FIX OVERLAP
   ============================================ */

.accessibility-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a6d3c;
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    height: 48px;
    min-height: 48px;
}

/* ✅ FIX: Move sidebar down to avoid overlap */
.sidebar {
    width: 260px;
    background: #4CAF50;
    color: white;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px); /* Subtract toolbar height */
    position: fixed;
    left: 0;
    top: 48px; /* Match toolbar height */
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* ✅ FIX: Move main content down to avoid overlap */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px 24px;
    overflow-y: auto;
    height: calc(100vh - 48px);
    margin-top: 48px;
    background: linear-gradient(180deg, #F1F8E9 0%, #E8F5E9 30%, #F1F8E9 70%, #ffffff 100%) !important;
    background-attachment: fixed !important;
}



/* ✅ FIX: Login screen also needs adjustment */
#login-screen .login-container {
    max-width: 350px;
    width: 90%;
    padding: 24px 26px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-top: 0;
    margin-bottom: 0;
    max-height: calc(100dvh - var(--accessibility-toolbar-height) - 50px);
    overflow-y: auto;
}

/* Accessibility Toolbar - Responsive */
.toolbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-container .language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-container .language-selector label {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 500;
}

.toolbar-container .language-selector select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.toolbar-container .accessibility-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.toolbar-container .access-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-container .access-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.toolbar-container .access-btn i {
    font-size: 14px;
}

/* ============================================
   SIDEBAR HEADER - FIX LOGO
   ============================================ */

.sidebar-header {
    padding: 16px 20px 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    min-height: 60px;
}

.sidebar-header .sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-header .sidebar-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.sidebar-header h3 span {
    color: #1a6d3c;
}

/* ✅ FIX: Responsive sidebar */
@media (max-width: 768px) {
    .accessibility-toolbar {
        height: 44px;
        min-height: 44px;
        padding: 4px 12px;
    }
    
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        top: 44px;
        height: calc(100vh - 44px);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 12px 16px;
        margin-top: 44px;
        height: calc(100vh - 44px);
    }
    
    .toolbar-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .toolbar-container .access-btn {
        padding: 2px 8px;
        font-size: 11px;
    }
    
    .toolbar-container .language-selector select {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .sidebar-header {
        padding: 12px 16px 10px 16px;
        min-height: 52px;
    }
    
    .sidebar-header .sidebar-logo {
        width: 34px;
        height: 34px;
    }
    
    .sidebar-header h3 {
        font-size: 15px;
    }
}

/* Keep the final mobile shell fluid after feature-specific overrides. */
@media (max-width: 768px) {
    .accessibility-toolbar {
        height: auto;
        min-height: 38px;
        padding: 5px 10px;
    }

    .toolbar-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .toolbar-container::-webkit-scrollbar {
        display: none;
    }

    .sidebar {
        top: 38px;
        bottom: 0;
        height: auto;
        width: min(300px, 86vw);
    }

    .main-content {
        width: 100%;
        padding: 14px;
        margin-top: 0;
        height: auto;
        min-height: calc(100dvh - 38px);
    }
}

@media (max-width: 480px) {
    .accessibility-toolbar {
        min-height: 34px;
    }

    .sidebar {
        top: 34px;
    }

    .main-content {
        padding: 10px;
        min-height: calc(100dvh - 34px);
    }
}

/* Keep every full-screen layer below the fixed accessibility toolbar. */
:root {
    --accessibility-toolbar-height: 48px;
}

.accessibility-toolbar {
    height: var(--accessibility-toolbar-height);
    min-height: var(--accessibility-toolbar-height);
}

#login-screen {
    top: var(--accessibility-toolbar-height);
    bottom: 0;
    min-height: auto;
    height: calc(100dvh - var(--accessibility-toolbar-height));
    overflow-y: auto;
    padding: 20px;
}

.dashboard {
    padding-top: var(--accessibility-toolbar-height);
}

.dashboard .sidebar {
    top: var(--accessibility-toolbar-height);
    height: calc(100dvh - var(--accessibility-toolbar-height));
    z-index: 1002;
}

.dashboard .main-content {
    margin-top: 0;
    min-height: calc(100dvh - var(--accessibility-toolbar-height));
}

@media (max-width: 768px) {
    :root {
        --accessibility-toolbar-height: 38px;
    }

    .dashboard .sidebar {
        width: min(300px, 86vw);
        height: calc(100dvh - var(--accessibility-toolbar-height));
    }

    .dashboard .main-content {
        height: auto;
        min-height: calc(100dvh - var(--accessibility-toolbar-height));
    }
}

@media (max-width: 480px) {
    :root {
        --accessibility-toolbar-height: 34px;
    }
}

/* Keep modal boxes inside the area below the accessibility toolbar. */
.modal,
.delete-modal-overlay {
    top: var(--accessibility-toolbar-height);
    height: calc(100dvh - var(--accessibility-toolbar-height));
    max-height: calc(100dvh - var(--accessibility-toolbar-height));
}

.modal-content,
.delete-modal-container {
    max-height: calc(100dvh - var(--accessibility-toolbar-height) - 24px);
}

/* Notification Badge Pulse Animation */
.notification-btn .badge.pulse {
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

/* Notification Item Hover */
.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa !important;
    transform: translateX(2px);
}

.notification-item.unread {
    position: relative;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #1a6d3c;
    border-radius: 0 3px 3px 0;
}

/* ============================================
   NOTIFICATION SIDEBAR - SMALLER SIZE
   ============================================ */

.notification-sidebar {
    position: fixed;
    top: 60px;
    right: -420px;
    width: 360px;  /* ✅ Mas maliit (dati 420px) */
    max-width: 90vw;
    height: calc(100vh - 80px);
    max-height: 600px;  /* ✅ May max height */
    background: white;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.notification-sidebar.open {
    right: 20px;
}

/* Header */
.notification-sidebar-header {
    padding: 16px 20px;  /* ✅ Mas maliit padding */
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.notification-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-sidebar-title i {
    font-size: 18px;  /* ✅ Mas maliit icon */
    color: #1a6d3c;
}

.notification-sidebar-title h3 {
    margin: 0;
    font-size: 16px;  /* ✅ Mas maliit font */
    font-weight: 700;
    color: #1a1a2e;
}

.notification-count {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ✅ X Close Button - LARGER AND CLICKABLE */
.notification-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.notification-close-btn:hover {
    background: #ffebee;
    color: #e74c3c;
    transform: rotate(90deg);
}

.notification-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

/* Body */
.notification-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: #fafafa;
}

.notification-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.notification-sidebar-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Notification Item - Compact */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 8px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.notification-item.unread {
    border-left: 3px solid #1a6d3c;
    background: #f0f8f4;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-title .unread-dot {
    width: 6px;
    height: 6px;
    background: #1a6d3c;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-message {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-time {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-action-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.notification-action-btn:hover {
    background: #ffebee;
    color: #e74c3c;
}

/* Empty State */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.notification-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}

.notification-empty p {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

.notification-empty span {
    font-size: 13px;
    color: #aaa;
}

/* Footer */
.notification-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: white;
    flex-shrink: 0;
}

.notification-mark-all {
    width: 100%;
    padding: 10px;
    background: #f0f8f4;
    border: none;
    border-radius: 8px;
    color: #1a6d3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.notification-mark-all:hover {
    background: #e8f5e9;
}

/* ============================================
   RESPONSIVE - NOTIFICATION SIDEBAR
   ============================================ */

@media (max-width: 768px) {
    .notification-sidebar {
        width: 340px;
        right: -360px;
        top: 56px;
        height: calc(100vh - 70px);
        border-radius: 12px;
    }
    
    .notification-sidebar.open {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .notification-sidebar {
        width: calc(100vw - 20px);
        right: -100vw;
        top: 56px;
        height: calc(100vh - 70px);
    }
    
    .notification-sidebar.open {
        right: 10px;
    }
    
    .notification-item {
        padding: 10px 12px;
        margin: 4px 6px;
    }
}

/* ============================================
   REAL-TIME SYSTEM LOGS - PROFESSIONAL UPGRADE
   ============================================ */

/* Live Indicator - Pulsing Dot */
.sl-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e8f5e9;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #27ae60;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.sl-live-indicator .live-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(39, 174, 96, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.sl-live-indicator.disconnected {
    background: #ffebee;
    color: #e74c3c;
}

.sl-live-indicator.disconnected .live-dot {
    background: #e74c3c;
    animation: none;
}

.sl-live-indicator.connecting {
    background: #fff3e0;
    color: #f39c12;
}

.sl-live-indicator.connecting .live-dot {
    background: #f39c12;
    animation: livePulse 0.8s infinite;
}

/* ============================================
   PROFESSIONAL TOAST NOTIFICATION
   ============================================ */

.pro-toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
}

.pro-toast {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #1a6d3c;
}

.pro-toast:hover {
    transform: translateX(-4px);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.pro-toast.dismissing {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
        max-height: 0;
        margin-bottom: -12px;
    }
    to {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
        margin-bottom: 0;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
        max-height: 0;
        margin-bottom: -12px;
    }
}

.pro-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pro-toast:hover .pro-toast-icon {
    transform: scale(1.1) rotate(-5deg);
}

.pro-toast-icon.login { background: #e8f5e9; color: #27ae60; }
.pro-toast-icon.logout { background: #f5f5f5; color: #666; }
.pro-toast-icon.created { background: #e8eaf6; color: #3f51b5; }
.pro-toast-icon.updated { background: #fff3e0; color: #f39c12; }
.pro-toast-icon.deleted { background: #ffebee; color: #e74c3c; }
.pro-toast-icon.approved { background: #e8f5e9; color: #27ae60; }
.pro-toast-icon.rejected { background: #ffebee; color: #e74c3c; }
.pro-toast-icon.default { background: #e8f5e9; color: #1a6d3c; }

.pro-toast-content {
    flex: 1;
    min-width: 0;
}

.pro-toast-title {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pro-toast-title-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #1a6d3c;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pro-toast-message {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
  
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.pro-toast-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pro-toast-meta .separator {
    color: #ddd;
}

.pro-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.pro-toast-close:hover {
    background: #f5f5f5;
    color: #666;
    transform: rotate(90deg);
}

/* Progress Bar */
.pro-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a6d3c, #2ecc71);
    border-radius: 0 0 0 16px;
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ============================================
   NEW LOG ROW ANIMATION
   ============================================ */

.sl-table tbody tr.new-log-row {
    animation: newLogSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff8e1;
    position: relative;
}

.sl-table tbody tr.new-log-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f39c12;
    animation: newLogBar 3s ease-out forwards;
}

@keyframes newLogSlideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
        background: #ffe082;
    }
    50% {
        background: #fff3e0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
        background: #fff8e1;
    }
}

@keyframes newLogBar {
    0%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.sl-table tbody tr.new-log-row.fade-highlight {
    background: white;
    transition: background 1s ease;
}

/* ============================================
   ANIMATED STAT NUMBERS
   ============================================ */

.sl-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.sl-stat-number.bump {
    animation: numberBump 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes numberBump {
    0% { transform: scale(1); color: #1a1a2e; }
    50% { transform: scale(1.25); color: #f39c12; }
    100% { transform: scale(1); color: #1a1a2e; }
}

/* ============================================
   HEADER ENHANCEMENTS
   ============================================ */

.sl-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-refresh-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sl-refresh-btn:hover {
    background: #e8f5e9;
    color: #1a6d3c;
    transform: rotate(180deg);
}

.sl-refresh-btn.spinning i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   PROFILE AVATAR UPLOAD - PROFESSIONAL
   ============================================ */

.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(26, 109, 60, 0.15);
    transition: all 0.3s ease;
}

.profile-avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(26, 109, 60, 0.3);
}

.profile-avatar-container i.fa-user-circle {
    font-size: 72px;
    color: #1a6d3c;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.profile-avatar-container:hover .profile-avatar-img {
    transform: scale(1.1);
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    pointer-events: none;
}

.profile-avatar-overlay i {
    font-size: 28px;
}

.profile-avatar-overlay span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-avatar-container:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-container.uploading .profile-avatar-overlay {
    opacity: 1;
    background: rgba(26, 109, 60, 0.85);
}

.profile-avatar-container.uploading .profile-avatar-overlay i {
    animation: spin 1s linear infinite;
}

.profile-avatar-fallback {
    font-size: 72px;
    color: #1a6d3c;
}

/* ============================================
   PROFILE AVATAR - BUTTON RESET
   ============================================ */

button.profile-avatar-container {
    display: block;
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(26, 109, 60, 0.15);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button.profile-avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(26, 109, 60, 0.3);
}

button.profile-avatar-container:active {
    transform: scale(0.98);
}

button.profile-avatar-container i.fa-user-circle {
    font-size: 72px;
    color: #1a6d3c;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ============================================ */
/* HIGH CONTRAST MODE - FULLY FUNCTIONAL       */
/* For vision-impaired users                    */
/* ============================================ */

.high-contrast-mode * {
    /* Override ALL colors */
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
}

/* ✅ Body */
.high-contrast-mode body {
    background: #000000 !important;
    color: #ffff00 !important;
}

/* ✅ Headings - Bright Yellow + Bold */
.high-contrast-mode h1,
.high-contrast-mode h2,
.high-contrast-mode h3,
.high-contrast-mode h4,
.high-contrast-mode h5,
.high-contrast-mode h6 {
    color: #ffff00 !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

/* ✅ Paragraphs and text */
.high-contrast-mode p,
.high-contrast-mode span,
.high-contrast-mode div,
.high-contrast-mode label,
.high-contrast-mode td,
.high-contrast-mode th {
    color: #ffff00 !important;
    font-weight: 600 !important;
}

/* ✅ Links - White with underline */
.high-contrast-mode a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

.high-contrast-mode a:hover,
.high-contrast-mode a:focus {
    color: #ffff00 !important;
    background: #0000ff !important;
    outline: 3px solid #ffff00 !important;
}

/* ✅ Buttons - High Visibility */
.high-contrast-mode button,
.high-contrast-mode .btn {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 3px solid #ffff00 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
}

.high-contrast-mode button:hover,
.high-contrast-mode button:focus,
.high-contrast-mode .btn:hover,
.high-contrast-mode .btn:focus {
    background: #ffff00 !important;
    color: #000000 !important;
    outline: 3px solid #ffffff !important;
    outline-offset: 2px !important;
}

/* ✅ Primary buttons */
.high-contrast-mode .btn-primary {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 3px solid #ffffff !important;
}

.high-contrast-mode .btn-primary:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* ✅ Inputs - White border, yellow text */
.high-contrast-mode input,
.high-contrast-mode select,
.high-contrast-mode textarea,
.high-contrast-mode .form-control {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 3px solid #ffff00 !important;
    font-weight: 700 !important;
    font-size: 1.05em !important;
    padding: 12px !important;
}

.high-contrast-mode input:focus,
.high-contrast-mode select:focus,
.high-contrast-mode textarea:focus {
    background: #000033 !important;
    border-color: #ffffff !important;
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px !important;
}

.high-contrast-mode input::placeholder,
.high-contrast-mode textarea::placeholder {
    color: #ffff00 !important;
    opacity: 1 !important;
}

/* ✅ Sidebar - Solid black with yellow borders */
.high-contrast-mode .sidebar {
    background: #000000 !important;
    border-right: 4px solid #ffff00 !important;
}

.high-contrast-mode .menu-item a {
    color: #ffff00 !important;
    border-bottom: 2px solid #333333 !important;
    font-weight: 700 !important;
}

.high-contrast-mode .menu-item a:hover,
.high-contrast-mode .menu-item.active a {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 3px solid #ffffff !important;
}

/* ✅ Top bar */
.high-contrast-mode .top-bar {
    background: #000000 !important;
    border-bottom: 4px solid #ffff00 !important;
}

/* ✅ Cards */
.high-contrast-mode .stat-card,
.high-contrast-mode .chart-card,
.high-contrast-mode .profile-card,
.high-contrast-mode .program-card,
.high-contrast-mode .event-card,
.high-contrast-mode .activity-card,
.high-contrast-mode .analytics-card,
.high-contrast-mode .modal-content {
    background: #000000 !important;
    border: 3px solid #ffff00 !important;
    border-radius: 0 !important;
}

/* ✅ Tables */
.high-contrast-mode table {
    border: 3px solid #ffff00 !important;
}

.high-contrast-mode table th {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 3px solid #ffff00 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.high-contrast-mode table td {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

.high-contrast-mode table tr:hover td {
    background: #000066 !important;
    color: #ffffff !important;
}

/* ✅ Modals */
.high-contrast-mode .modal {
    background: rgba(0, 0, 0, 0.95) !important;
}

.high-contrast-mode .modal-header,
.high-contrast-mode .modal-body,
.high-contrast-mode .modal-footer {
    background: #000000 !important;
    border-color: #ffff00 !important;
}

.high-contrast-mode .modal-header {
    border-bottom: 3px solid #ffff00 !important;
}

.high-contrast-mode .modal-footer {
    border-top: 3px solid #ffff00 !important;
}

/* ✅ Status badges */
.high-contrast-mode .status-badge,
.high-contrast-mode .badge,
.high-contrast-mode .role-badge {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 3px solid #ffffff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

/* ✅ Notification sidebar */
.high-contrast-mode .notification-sidebar {
    background: #000000 !important;
    border-left: 4px solid #ffff00 !important;
}

.high-contrast-mode .notification-item {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
}

.high-contrast-mode .notification-item:hover {
    background: #000066 !important;
}

/* ✅ Images - Add border for visibility */
.high-contrast-mode img {
    border: 3px solid #ffff00 !important;
}

/* ✅ Icons - Bright yellow */
.high-contrast-mode i,
.high-contrast-mode .fas,
.high-contrast-mode .far {
    color: #ffff00 !important;
}

/* ✅ Remove rounded corners and gradients for solid look */
.high-contrast-mode *,
.high-contrast-mode *::before,
.high-contrast-mode *::after {
    border-radius: 0 !important;
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* ✅ Focus outline for keyboard navigation */
.high-contrast-mode *:focus {
    outline: 4px solid #ffff00 !important;
    outline-offset: 3px !important;
}

/* ✅ Charts - High contrast filter */
.high-contrast-mode canvas {
    filter: contrast(1.5) brightness(1.2) !important;
}

/* ✅ Login page */
.high-contrast-mode .login-container,
.high-contrast-mode .login-screen {
    background: #000000 !important;
    border: 4px solid #ffff00 !important;
}

/* ✅ Accessibility toolbar - always visible */
.high-contrast-mode .accessibility-toolbar {
    background: #000000 !important;
    border-bottom: 4px solid #ffff00 !important;
}

.high-contrast-mode .access-btn {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 3px solid #ffff00 !important;
    font-weight: 900 !important;
}

.high-contrast-mode .access-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

/* ✅ Make the contrast button always show it's active */
.high-contrast-mode #contrast-toggle {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 3px solid #ffffff !important;
    font-weight: 900 !important;
}

/* ✅ Smooth transition when toggling */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================ */
/* FONT SIZE SCALING — HIGH SPECIFICITY        */
/* ============================================ */

/* ✅ Make body and html transition smoothly */
html {
    transition: font-size 0.3s ease;
}

body {
    transition: font-size 0.3s ease;
}

/* ✅ Override specific elements that have fixed font-size */
body *:not(.no-scale) {
    /* Most elements inherit from parent */
    font-size: inherit;
}

/* ✅ Restore specific sizes for elements that NEED fixed size */
body .access-btn,
body .notification-btn,
body .close-modal,
body .toggle-password-btn {
    font-size: 0.9rem !important;
}

/* ✅ Icons should scale with text */
body i.fas,
body i.far,
body i.fab {
    font-size: 1em;
}

/* ✅ Badges and labels */
body .badge,
body .status-badge,
body .role-badge {
    font-size: 0.75rem !important;
}

/* ✅ Sidebar menu items scale */
body .menu-item a {
    font-size: 0.95rem !important;
}

/* ✅ Buttons scale */
body .btn,
body button:not(.access-btn):not(.close-modal):not(.toggle-password-btn):not(.notification-btn) {
    font-size: 0.9rem !important;
}

/* ✅ Tables scale */
body table,
body table th,
body table td {
    font-size: 0.85rem !important;
}

/* ✅ Form inputs scale */
body input,
body select,
body textarea,
body .form-control {
    font-size: 0.95rem !important;
}

/* ✅ Headings scale with rem */
body h1 { font-size: 2rem !important; }
body h2 { font-size: 1.5rem !important; }
body h3 { font-size: 1.25rem !important; }
body h4 { font-size: 1.1rem !important; }
body h5 { font-size: 1rem !important; }
body h6 { font-size: 0.9rem !important; }

/* ✅ Statistics numbers scale */
body .stat-number {
    font-size: 1.8rem !important;
}

body .stat-label {
    font-size: 0.85rem !important;
}

/* ✅ Modal content scales */
body .modal-content {
    font-size: 1rem !important;
}

/* ✅ Toast notifications scale */
body .pro-toast,
body .notification-item {
    font-size: 0.9rem !important;
}

/* ✅ Accessibility toolbar always visible */
body .accessibility-toolbar {
    font-size: 0.85rem !important;
}

/* ============================================ */
/* MAP MARKER ANIMATIONS                        */
/* ============================================ */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(26,109,60,0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 24px rgba(26,109,60,0.7);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-8px);
    }
}

.custom-marker,
.user-marker,
.current-user-marker,
.pdao-office-marker,
.user-marker-other {
    background: transparent !important;
    border: none !important;
}

.leaflet-popup-content {
    margin: 12px !important;
    font-family: 'Inter', sans-serif !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
}

.map-controls button:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ✅ High Contrast Mode for Map */
.high-contrast-mode .map-controls button {
    background: #000 !important;
    color: #ff0 !important;
    border: 3px solid #ff0 !important;
}

.high-contrast-mode .leaflet-popup-content-wrapper {
    background: #000 !important;
    color: #ff0 !important;
    border: 3px solid #ff0 !important;
}

/* ✅ Hide dashboard welcome role badge */
#page-dashboard .page-header .dashboard-role-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ============================================
   ✅ PALIITIN ANG WELCOME MESSAGE SUBTITLE
   ============================================ */

#page-dashboard .page-header p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #6c757d !important;
    margin-top: 4px !important;
}

/* ✅ Yung "PDAO Head (Administrator)" na text */
#page-dashboard .page-header p strong {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1a6d3c !important;
}

/* ✅ Yung date/time sa dulo */
#page-dashboard .page-header p .dashboard-time {
    font-size: 11px !important;
    color: #999 !important;
    font-weight: 400 !important;
}

/* ✅ Yung clock icon */
#page-dashboard .page-header p i {
    font-size: 11px !important;
    margin-right: 4px !important;
}

/* ============================================
   ✅ FIX SIDEBAR SPEAKER BUTTONS — FINAL
   Inline sa dulo, walang overlap
   ============================================ */

/* Menu item link — flex row */
.sidebar-menu .menu-item a {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-right: 8px !important;
    min-width: 0 !important;
}

/* Icon sa kaliwa — hindi liliit */
.sidebar-menu .menu-item a > i:first-child {
    flex-shrink: 0 !important;
    width: 20px !important;
}

/* Text span — kumukuha ng natitirang space, may ellipsis */
.sidebar-menu .menu-item a > span {
    flex: 1 !important;
    min-width: 0 !important;   /* ✅ CRITICAL */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Speaker button — maliit, hindi liliit, hindi overlap */
.sidebar-menu .menu-item a .listen-btn,
.sidebar-menu .menu-item a button.listen-btn,
.sidebar-menu .menu-item a [class*="speak"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: 4px !important;
    font-size: 9px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease !important;
}

.sidebar-menu .menu-item a .listen-btn:hover {
    background: #ffffff !important;
    color: #4CAF50 !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
}

/* ✅ Mobile fix — mas maliit pa */
@media (max-width: 480px) {
    .sidebar-menu .menu-item a .listen-btn {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        font-size: 8px !important;
    }
}

/* ============================================
   ✅ FIX PROGRAM CARDS — WHITE BACKGROUND
   Force white + clean look
   ============================================ */

/* Program card container */
#page-programs .program-card,
#programs-list .program-card {
    background: #ffffff !important;
    border: 1px solid #E2E8E4 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    color: #1a1a2e !important;
}

/* Hover effect */
#page-programs .program-card:hover,
#programs-list .program-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-4px) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

/* Remove dark gradient accents */
#page-programs .program-card::before,
#programs-list .program-card::before {
    background: linear-gradient(90deg, #4CAF50 0%, #43A047 100%) !important;
    height: 4px !important;
}

#page-programs .program-card::after,
#programs-list .program-card::after {
    display: none !important;
}

/* ===== PROGRAM TITLE ===== */
#page-programs .program-card-header h3,
#programs-list .program-card-header h3,
.program-card .program-card-header h3 {
    color: #1a1a2e !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    line-height: 1.3 !important;
}

/* ===== DESCRIPTION ===== */
#page-programs .program-desc,
#programs-list .program-desc,
.program-card .program-desc {
    color: #5a6b5f !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-shadow: none !important;
}

/* ===== DETAILS (type, budget, date) ===== */
#page-programs .program-details,
#programs-list .program-details,
.program-card .program-details {
    border-top: 1px solid #F0F4F1 !important;
    border-bottom: 1px solid #F0F4F1 !important;
    padding: 14px 0 !important;
    margin-bottom: 16px !important;
}

#page-programs .program-details span,
#programs-list .program-details span,
.program-card .program-details span {
    color: #6c757d !important;
    font-size: 13px !important;
    text-shadow: none !important;
}

#page-programs .program-details span i,
#programs-list .program-details span i,
.program-card .program-details span i {
    color: #1a6d3c !important;
}

#page-programs .program-details .program-budget,
#programs-list .program-details .program-budget,
.program-card .program-details .program-budget {
    color: #1a6d3c !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* ===== STATUS BADGE ===== */
.program-card .status-badge,
.program-card-header .status-badge {
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    backdrop-filter: none !important;
}

.program-card .status-badge.status-active,
.program-card-header .status-badge.status-active {
    background: #e8f5e9 !important;
    color: #1a6d3c !important;
    border: 1px solid #a5d6a7 !important;
}

.program-card .status-badge.status-upcoming,
.program-card-header .status-badge.status-upcoming {
    background: #fff3e0 !important;
    color: #f39c12 !important;
    border: 1px solid #ffcc80 !important;
}

.program-card .status-badge.status-completed,
.program-card-header .status-badge.status-completed {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    border: 1px solid #90caf9 !important;
}

.program-card .status-badge.status-cancelled,
.program-card-header .status-badge.status-cancelled {
    background: #ffebee !important;
    color: #e74c3c !important;
    border: 1px solid #ef9a9a !important;
}

/* ===== ACTION BUTTONS ===== */
.program-card .program-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding-top: 16px !important;
    border-top: 1px solid #F0F4F1 !important;
}

.program-card .program-actions .btn-sm {
    padding: 8px 16px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

/* View button — green */
.program-card .program-actions .btn-sm.btn-info {
    background: #1a6d3c !important;
    color: #ffffff !important;
}

.program-card .program-actions .btn-sm.btn-info:hover {
    background: #145a32 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(26, 109, 60, 0.3) !important;
}

/* Edit button — orange */
.program-card .program-actions .btn-sm.btn-warning {
    background: #F59E0B !important;
    color: #ffffff !important;
}

.program-card .program-actions .btn-sm.btn-warning:hover {
    background: #D97706 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

/* Delete button — red */
.program-card .program-actions .btn-sm.btn-danger {
    background: #EF4444 !important;
    color: #ffffff !important;
}

.program-card .program-actions .btn-sm.btn-danger:hover {
    background: #DC2626 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Apply button — green (para sa PWD) */
.program-card .program-actions .btn-sm.btn-primary {
    background: #1a6d3c !important;
    color: #ffffff !important;
}

.program-card .program-actions .btn-sm.btn-primary:hover {
    background: #145a32 !important;
    transform: translateY(-2px) !important;
}

/* View Applicants button — blue outline */
.program-card .program-actions .btn-sm[style*="e3f2fd"] {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    border: 1px solid #1976d2 !important;
}

.program-card .program-actions .btn-sm[style*="e3f2fd"]:hover {
    background: #1976d2 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ===== PAGE HEADER (Programs & Services) ===== */
#page-programs .page-header h2,
#page-programs .page-header h2 i {
    color: #1a6d3c !important;
    text-shadow: none !important;
}

#page-programs .page-header p {
    color: #6c757d !important;
    text-shadow: none !important;
}