/* ========== SETTINGS PAGE STYLES ========== */

/* ---- Dashboard Header ---- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #5b72e8 0%, #5c71bf 60%, #13578e 100%);
    padding: 22px 30px;
    border-radius: 18px;
    color: white;
    box-shadow: 0 16px 48px rgba(91, 114, 232, 0.32), 0 4px 12px rgba(91, 114, 232, 0.18);
    position: relative;
    overflow: hidden;
    max-width: 1150px;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.dashboard-header h1 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    color: azure;
}

.dashboard-header h1 i {
    font-size: 28px;
    color: #f4f6ff;
}

.dashboard-header .date {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #f1f5f9;
}

.dashboard-header .date i {
    font-size: 18px;
    opacity: 0.92;
    color: #f4f6ff;
}

/* Dashboard Header - Mobile */
@media screen and (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .dashboard-header h1 i {
        font-size: 22px;
    }
    
    .dashboard-header .date {
        width: 100%;
        justify-content: center;
    }
}

/* ---- Alerts ---- */
.alert {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    animation: slideIn 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert i {
    font-size: 20px;
}

.alert-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Alerts - Mobile */
@media screen and (max-width: 768px) {
    .alert {
        padding: 14px 18px;
        margin-bottom: 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .alert {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
}



/* --------------INSTITUTION SETTINGS SECTION ------------*/

.settings-section {
    margin-top: 28px;
    max-width: 1150px;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #3c4262;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.4px;
}

.section-title i {
    color: #5b72e8;
    font-size: 24px;
}

/* Settings Grid - 2 Columns */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 18px;
   background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ece9fb;
}

/* Settings Cards */
.settings-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eaeffa;
    box-shadow: 0 2px 8px rgba(15, 23, 70, 0.05), 0 1px 3px rgba(15, 23, 70, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.settings-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 70, 0.1), 0 3px 8px rgba(15, 23, 70, 0.06);
    transform: translateY(-3px);
    border-color: #d6e0fb;
}

/* Settings Card Headers */
.settings-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eef2fb;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fafcff 0%, #f5f8ff 100%);
}

.settings-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #3c4262;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.settings-card-header h3 i {
    color: #5b72e8;
    font-size: 15px;
}

/* Settings Card Body */
.settings-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Form Rows - 2 COLUMNS PER ROW */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #46426c;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.35px;
}

.form-group label i {
    color: #5b72e8;
    font-size: 13px;
}

/* Form Controls */
.form-control {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    color: #111827;
    background-color: #f9fafb;
    transition: all 0.18s ease;
    box-sizing: border-box;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: #5b72e8;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(91, 114, 232, 0.18), 0 0 0 4px rgba(91, 114, 232, 0.12);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Logo Container */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 16px;
}

.logo-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 18px rgba(91, 114, 232, 0.2);
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-family: 'Nunito', sans-serif;
}

.logo-placeholder i {
    font-size: 48px;
    color: #cbd5e1;
}

.logo-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-input {
    display: none;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eef2ff;
    color: #5b72e8;
    font-size: 12.5px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    border: 1px solid #dce6ff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.file-upload-label:hover {
    background: #dce6ff;
    border-color: #c5d3ff;
    color: #3a56e4;
    transform: translateY(-1px);
}

.file-upload-label i {
    font-size: 14px;
}

/* Help Text */
.form-text {
    font-size: 11.5px;
    font-family: 'Nunito', sans-serif;
    color: #94a3b8;
    margin: 0;
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 18px;
        gap: 10px;
    }
    
    .section-title i {
        font-size: 20px;
    }
    
    .settings-card-header {
        padding: 14px 16px;
    }
    
    .settings-card-header h3 {
        font-size: 14px;
    }
    
    .settings-card-body {
        padding: 16px;
        gap: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .logo-preview {
        width: 96px;
        height: 96px;
    }
    
    .logo-placeholder i {
        font-size: 40px;
    }
}

@media screen and (max-width: 480px) {
    .settings-grid {
        padding: 12px 10px;
        gap: 12px;
    }
    
    .settings-card {
        border-radius: 13px;
    }
}




/* ----------SMTP SETTINGS SECTION ---------- */

.smtp-settings-section {
    margin-top: 28px;
    max-width: 1150px;
}

.smtp-section-header {
    margin-bottom: 24px;
}

.smtp-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #3c4262;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.4px;
}

.smtp-section-title i {
    color: #5b72e8;
    font-size: 24px;
}

.smtp-section-description {
    font-size: 14px;
    color: #7a8aaa;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    font-weight: 500;
}

/* SMTP Settings Grid - 3 COLUMNS ON DESKTOP */
.smtp-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fffff9 100%);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #ece9fb;
}

/* SMTP Cards */
.smtp-settings-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eaeffa;
    box-shadow: 0 2px 8px rgba(15, 23, 70, 0.05), 0 1px 3px rgba(15, 23, 70, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.smtp-settings-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 70, 0.1), 0 3px 8px rgba(15, 23, 70, 0.06);
    transform: translateY(-3px);
    border-color: #d6e0fb;
}

/* SMTP Card Headers */
.smtp-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eef2fb;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fafcff 0%, #f5f8ff 100%);
}

.smtp-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #3c4262;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.smtp-card-header h3 i {
    color: #5b72e8;
    font-size: 15px;
}

/* SMTP Card Body */
.smtp-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* SMTP Form Groups - ONE PER ROW */
.smtp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%; /* Full width */
}

.smtp-form-group label {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #514b77;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.35px;
}

.smtp-form-group label i {
    color: #5b72e8;
    font-size: 13px;
}

/* REMOVED smtp-form-row - Now 1 field per row */

/* SMTP Form Controls */
.smtp-form-control {
    width: 100%; /* Full width */
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    color: #111827;
    background-color: #f9fafb;
    transition: all 0.18s ease;
    box-sizing: border-box;
}

.smtp-form-control:focus {
    outline: none;
    border-color: #5b72e8;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(91, 114, 232, 0.18), 0 0 0 4px rgba(91, 114, 232, 0.12);
}

.smtp-form-control::placeholder {
    color: #9ca3af;
}

/* SMTP Password Wrapper */
.smtp-password-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.smtp-password-wrapper .smtp-form-control {
    border-radius: 10px 0 0 10px;
}

.smtp-password-toggle {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    padding: 10px 12px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
}

.smtp-password-toggle:hover {
    background: #e2e8f0;
    color: #5b72e8;
}

/* SMTP Help Text */
.smtp-form-help {
    font-size: 11.5px;
    font-family: 'Nunito', sans-serif;
    color: #94a3b8;
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 1200px) {
    .smtp-settings-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media screen and (max-width: 1024px) {
    .smtp-settings-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
    }
}

@media screen and (max-width: 768px) {
    .smtp-section-title {
        font-size: 18px;
        gap: 10px;
    }
    
    .smtp-section-title i {
        font-size: 20px;
    }
    
    .smtp-section-description {
        font-size: 13.5px;
    }
    
    .smtp-card-header {
        padding: 14px 16px;
    }
    
    .smtp-card-header h3 {
        font-size: 14px;
    }
    
    .smtp-card-body {
        padding: 16px;
        gap: 14px;
    }
}

@media screen and (max-width: 480px) {
    .smtp-settings-section {
        margin-top: 20px;
    }
    
    .smtp-settings-grid {
        padding: 12px 10px;
        gap: 12px;
    }
    
    .smtp-settings-card {
        border-radius: 13px;
    }
    
    .smtp-form-control {
        padding: 9px 11px;
        font-size: 12.5px;
    }
}



/* --------------SMTP FORM ACTIONS ----------- */

.smtp-form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2fb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 1150px;
}

/* Save Button */
.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.2px;
}

.btn-save i {
    font-size: 14px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

/* Cancel Button */
.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.btn-cancel i {
    font-size: 14px;
}

.btn-cancel:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-2px);
    text-decoration: none;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .smtp-form-actions {
        margin-top: 16px;
        padding-top: 16px;
        gap: 10px;
        justify-content: center;
    }
    
    .btn-save,
    .btn-cancel {
        padding: 10px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .smtp-form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-save,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}


/* ─── DATA MANAGEMENT SECTION ────────────────────────────────────────────────── */
.data-management-section {
    background: #ffffff;
    border-radius: 9px;
    padding: 25px;
    border: 1px solid #eaeffa;
    box-shadow: 0 8px 24px rgba(15, 23, 70, 0.06);
    margin-bottom: 28px;
    margin-top: 60px;
    max-width: 1150px;
}

/* ─── SECTION HEADER ─────────────────────────────────────────────────────────── */
.section-header {
    margin-bottom: 22px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e5c;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.3px;
}

.section-title i {
    color: #5b72e8;
    font-size: 17px;
}

.section-description {
    font-size: 13.5px;
    color: #7a8aaa;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    margin: 0;
}

/* ─── GRID ───────────────────────────────────────────────────────────────────── */
.data-management-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ─── DATA CARD ──────────────────────────────────────────────────────────────── */
.data-card {
    border-radius: 14px;
    border: 1px solid #eaeffa;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s ease,
                border-color 0.22s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 70, 0.04);
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 70, 0.10), 0 4px 10px rgba(15, 23, 70, 0.06);
    border-color: #d6e0fb;
}

/* ─── CARD HEADER ────────────────────────────────────────────────────────────── */
.data-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #fafcff, #f5f8ff);
    border-bottom: 1px solid #eef2fb;
}

.data-card-header i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b72e8, #4f46e5);
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(91, 114, 232, 0.30);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.data-card:hover .data-card-header i {
    transform: scale(1.12) rotate(-4deg);
}

.data-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e5c;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    letter-spacing: -0.2px;
}

/* ─── CARD BODY ──────────────────────────────────────────────────────────────── */
.data-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
}

.data-card-body p {
    font-size: 13px;
    color: #7a8aaa;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.data-card-body form {
    margin: 0;
}

/* ─── WARNING / DANGER CARD VARIANTS ─────────────────────────────────────────── */

/* Warning card (amber) */
.data-card:has(.data-btn.warning) .data-card-header i {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.30);
}

.data-card:has(.data-btn.warning):hover {
    border-color: #fde68a;
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.10), 0 4px 10px rgba(245, 158, 11, 0.06);
}

/* Danger card (red) */
.data-card:has(.data-btn.danger):not(.danger-zone) .data-card-header i {
    background: linear-gradient(135deg, #f87171, #ef4444, #dc2626);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.30);
}

.data-card:has(.data-btn.danger):not(.danger-zone):hover {
    border-color: #fecaca;
    box-shadow: 0 14px 36px rgba(239, 68, 68, 0.10), 0 4px 10px rgba(239, 68, 68, 0.06);
}

/* ─── DANGER ZONE CARD ───────────────────────────────────────────────────────── */
.data-card.danger-zone {
    border-color: #fecaca;
    background: linear-gradient(135deg, #ffffff, #fff8f8);
}

.data-card.danger-zone .data-card-header {
    background: linear-gradient(135deg, #fff1f1, #ffe4e4);
    border-bottom-color: #fecaca;
}

.data-card.danger-zone .data-card-header i {
    background: linear-gradient(135deg, #f87171, #ef4444, #dc2626);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
    animation: pulse-danger 2.2s ease-in-out infinite;
}

.data-card.danger-zone .data-card-header h3 {
    color: #dc2626;
}

.data-card.danger-zone:hover {
    border-color: #fca5a5;
    box-shadow: 0 14px 36px rgba(239, 68, 68, 0.14), 0 4px 10px rgba(239, 68, 68, 0.08);
}

.data-card.danger-zone .data-card-body {
    background: transparent;
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35); }
    50%       { box-shadow: 0 4px 18px rgba(239, 68, 68, 0.65); }
}

.warning-text {
    color: #dc2626 !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
}

/* ─── DATA BUTTONS ───────────────────────────────────────────────────────────── */
.data-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.22s ease;
}

.data-btn i {
    font-size: 12px;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.data-btn:hover i { transform: scale(1.2); }

/* Warning button — amber */
.data-btn.warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.data-btn.warning:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.38);
}

/* Danger button — red */
.data-btn.danger {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28);
}

.data-btn.danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.38);
}

/* Bold danger button — deeper red for reset all */
.data-btn.danger.bold {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    letter-spacing: 0.2px;
}

.data-btn.danger.bold:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.50);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media screen and (max-width: 1200px) {
    .data-management-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .data-management-section {
        padding: 18px;
        border-radius: 14px;
    }

    .data-management-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .data-card-header { padding: 13px 14px 12px; }
    .data-card-body   { padding: 13px 14px 15px; gap: 12px; }

    .data-card-header h3 { font-size: 13px; }
    .data-card-body p    { font-size: 12.5px; }
    .data-btn            { font-size: 12.5px; padding: 9px 12px; }
}

@media screen and (max-width: 500px) {
    .data-management-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .data-card { border-radius: 12px; }
}


/* =================FORGOT PASSWORD PAGE START============== */

body.forgot-page {
    background: radial-gradient(
        circle at 30% 20%,
        #1e293b 0%,
        #0f172a 40%,
        #2a2f4d 100%
    ) !important;
    font-family: 'Montserrat', sans-serif !important;
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Main wrapper - allows internal scrolling if needed */
#forgot-password-container {
    width: 100%;
    max-width: 380px; /* Slightly smaller */
    margin: 0 auto;
    padding: 10px;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

/* Hide scrollbar for Chrome/Safari */
#forgot-password-container::-webkit-scrollbar {
    display: none;
}

/* Card - more compact */
#forgot-password-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 25px; /* Reduced from 35px 30px */
    border-radius: 8px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-sizing: border-box;
}

#forgot-password-card:hover {
    transform: translateY(-3px) scale(1.01); /* Reduced hover effect */
    box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.5);
}

/* Logo section - more compact */
#forgot-password-logo {
    text-align: center;
    margin-bottom: 15px; /* Reduced from 25px */
}

#forgot-password-logo i {
    font-size: 35px; /* Reduced from 40px */
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px; /* Reduced from 10px */
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

#forgot-password-logo h1 {
    color: #3d385e;
    font-size: 22px; /* Reduced from 24px */
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 5px 0; /* Reduced from 0 0 8px 0 */
}

#forgot-password-logo p {
    color: #64748b;
    font-size: 13px; /* Reduced from 14px */
    margin: 0;
    line-height: 1.4;
}

/* Alert messages - more compact */
#forgot-password-success,
#forgot-password-error {
    padding: 10px 14px; /* Reduced from 14px 16px */
    border-radius: 10px;
    margin-bottom: 15px; /* Reduced from 25px */
    text-align: center;
    font-size: 12px; /* Reduced from 13px */
    font-weight: 500;
    animation: slideIn 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#forgot-password-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

#forgot-password-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

#forgot-password-success i,
#forgot-password-error i {
    font-size: 14px; /* Reduced from 16px */
}

/* Form styles */
#forgot-password-form {
    width: 100%;
}

#forgot-password-form-group {
    margin-bottom: 15px; /* Reduced from 20px */
    position: relative;
}

#forgot-password-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px; /* Reduced from 8px */
    color: #334155;
    font-weight: 500;
    font-size: 12px; /* Reduced from 13px */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

#forgot-password-form-group label i {
    color: #3b82f6;
    font-size: 12px; /* Reduced from 14px */
}

#forgot-password-form-group:hover label {
    color: #3b82f6;
    transform: translateX(3px); /* Reduced from 5px */
}

#forgot-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#forgot-password-input-wrapper .input-icon {
    position: absolute;
    left: 12px; /* Reduced from 14px */
    color: #94a3b8;
    font-size: 14px; /* Reduced from 16px */
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

#forgot-password-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 38px; /* Reduced from 14px 14px 14px 42px */
    border: 2px solid #e2e8f0;
    border-radius: 12px; /* Reduced from 14px */
    font-size: 13px; /* Reduced from 14px */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Montserrat', sans-serif;
    background: #f8fafc;
    box-sizing: border-box;
}

#forgot-password-input-wrapper input:hover {
    border-color: #3b82f6;
    background: #ffffff;
    transform: scale(1.01); /* Reduced from 1.02 */
}

#forgot-password-input-wrapper input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); /* Reduced from 4px */
    transform: scale(1.01);
    padding-left: 40px; /* Reduced from 45px */
}

#forgot-password-input-wrapper input:focus + .input-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

#forgot-password-input-wrapper input::placeholder {
    color: #94a3b8;
    font-size: 12px; /* Reduced from 13px */
    transition: opacity 0.3s ease;
}

#forgot-password-input-wrapper input:hover::placeholder {
    opacity: 0.6;
}

/* Button styles - more compact */
#forgot-password-submit {
    width: 100%;
    padding: 12px; /* Reduced from 15px */
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px; /* Reduced from 14px */
    font-size: 14px; /* Reduced from 15px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 8px 0 12px; /* Reduced from 10px 0 15px */
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Reduced from 1px */
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Reduced from 10px */
}

#forgot-password-submit i {
    font-size: 14px; /* Reduced from 16px */
    transition: transform 0.3s ease;
}

#forgot-password-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#forgot-password-submit:hover {
    transform: translateY(-2px) scale(1.01); /* Reduced from -3px 1.02 */
    box-shadow: 0 10px 25px -8px rgba(59, 130, 246, 0.6); /* Reduced shadow */
}

#forgot-password-submit:hover i {
    transform: translateX(3px) rotate(5deg); /* Reduced rotation */
}

#forgot-password-submit:hover::before {
    left: 100%;
}

#forgot-password-submit:active {
    transform: translateY(0) scale(0.98);
}

/* Back link - more compact */
#forgot-password-back-link {
    text-align: center;
    margin: 10px 0 0; /* Reduced from 15px 0 5px */
}

#forgot-password-back-link a {
    color: #64748b;
    font-size: 12px; /* Reduced from 13px */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    padding: 6px 14px; /* Reduced from 8px 16px */
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#forgot-password-back-link a i {
    font-size: 11px; /* Reduced from 12px */
    transition: transform 0.3s ease;
}

#forgot-password-back-link a:hover {
    color: #3b82f6;
    background: #ffffff;
    border-color: #3b82f6;
    transform: translateX(-2px); /* Reduced from -3px */
}

#forgot-password-back-link a:hover i {
    transform: translateX(-2px); /* Reduced from -3px */
}

/* Footer note - more compact */
#forgot-password-footer.footer-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px; /* Reduced from 12px */
    margin-top: 12px; /* Reduced from 20px */
    text-align: center;
    font-weight: 500;
    padding: 8px 0; /* Reduced from 12px 0 */
    transition: all 0.3s ease;
}

#forgot-password-footer.footer-note a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px); /* Reduced from -10px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESET PASSWORD PAGE ONLY ===== */

body.reset-page {
    background: radial-gradient(
        circle at 30% 20%,
        #1e293b 0%,
        #0f172a 40%,
        #2a2f4d 100%
    ) !important;
    font-family: 'Montserrat', sans-serif !important;
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Main wrapper */
#reset-password-container {
    width: 100%;
    max-width: 380px; /* Slightly smaller */
    margin: 0 auto;
    padding: 10px;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

/* Hide scrollbar */
#reset-password-container::-webkit-scrollbar {
    display: none;
}

/* Card - more compact */
#reset-password-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 25px; /* Reduced from 25px 30px */
    border-radius: 8px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-sizing: border-box;
}

#reset-password-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.5);
}

/* Logo section - more compact */
#reset-password-logo {
    text-align: center;
    margin-bottom: 12px; /* Reduced from 15px */
}

#reset-password-logo i {
    font-size: 35px; /* Reduced from 40px */
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

#reset-password-logo h1 {
    color: #3d385e;
    font-size: 22px; /* Reduced from 24px */
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 5px 0;
}

#reset-password-logo p {
    color: #64748b;
    font-size: 12px; /* Reduced from 13px */
    margin: 0;
    line-height: 1.4;
}

/* Alert messages - more compact */
#reset-password-success,
#reset-password-error {
    padding: 8px 12px; /* Reduced from 10px 14px */
    border-radius: 8px;
    margin-bottom: 12px; /* Reduced from 15px */
    text-align: center;
    font-size: 11px; /* Reduced from 12px */
    font-weight: 500;
    animation: slideIn 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#reset-password-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

#reset-password-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

#reset-password-success i,
#reset-password-error i {
    font-size: 12px; /* Reduced from 14px */
}

/* Form styles */
#reset-password-form {
    width: 100%;
}

/* Form groups - more compact */
#reset-password-form-group-password,
#reset-password-form-group-confirm {
    margin-bottom: 12px; /* Reduced from 15px */
    position: relative;
}

#reset-password-form-group-password label,
#reset-password-form-group-confirm label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px; /* Reduced from 5px */
    color: #334155;
    font-weight: 500;
    font-size: 11px; /* Reduced from 12px */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

#reset-password-form-group-password label i,
#reset-password-form-group-confirm label i {
    color: #3b82f6;
    font-size: 11px; /* Reduced from 12px */
}

/* Input wrappers */
#reset-password-wrapper-password,
#reset-password-wrapper-confirm {
    position: relative;
    display: flex;
    align-items: center;
}

#reset-password-wrapper-password .input-icon,
#reset-password-wrapper-confirm .input-icon {
    position: absolute;
    left: 10px; /* Reduced from 12px */
    color: #94a3b8;
    font-size: 13px; /* Reduced from 14px */
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Input fields - more compact */
#reset-password-wrapper-password input,
#reset-password-wrapper-confirm input {
    width: 100%;
    padding: 10px 35px 10px 35px; /* Reduced from 12px 40px 12px 38px */
    border: 2px solid #e2e8f0;
    border-radius: 10px; /* Reduced from 12px */
    font-size: 12px; /* Reduced from 13px */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Montserrat', sans-serif;
    background: #f8fafc;
    box-sizing: border-box;
}

#reset-password-wrapper-password input:hover,
#reset-password-wrapper-confirm input:hover {
    border-color: #3b82f6;
    background: #ffffff;
    transform: scale(1.01);
}

#reset-password-wrapper-password input:focus,
#reset-password-wrapper-confirm input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    transform: scale(1.01);
    padding-left: 38px;
}

/* Password toggle buttons */
#reset-password-toggle-password,
#reset-password-toggle-confirm {
    position: absolute;
    right: 10px; /* Reduced from 12px */
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px; /* Reduced from 16px */
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Form text - more compact */
#reset-password-form-group-password .form-text {
    display: block;
    font-size: 9px; /* Reduced from 10px */
    color: #64748b;
    margin-top: 3px; /* Reduced from 4px */
    margin-left: 6px;
}

/* Button styles - more compact */
#reset-password-submit {
    width: 100%;
    padding: 10px; /* Reduced from 12px */
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px; /* Reduced from 12px */
    font-size: 13px; /* Reduced from 14px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 8px 0 10px; /* Reduced from 10px 0 12px */
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Reduced from 8px */
}

#reset-password-submit i {
    font-size: 12px; /* Reduced from 14px */
    transition: transform 0.3s ease;
}

/* Login link - more compact */
#reset-password-login-link {
    text-align: center;
    margin: 5px 0 0; /* Reduced from 8px 0 0 */
}

#reset-password-login-link a {
    color: #64748b;
    font-size: 11px; /* Reduced from 12px */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Reduced from 6px */
    padding: 5px 12px; /* Reduced from 6px 14px */
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#reset-password-login-link a i {
    font-size: 10px; /* Reduced from 11px */
    transition: transform 0.3s ease;
}

/* Footer note - more compact */
#reset-password-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px; /* Reduced from 11px */
    margin-top: 10px; /* Reduced from 12px */
    text-align: center;
    font-weight: 500;
    padding: 6px 0; /* Reduced from 8px 0 */
    transition: all 0.3s ease;
}

/* Mobile styles - keep compact */
@media screen and (max-width: 480px) {
    #forgot-password-card,
    #reset-password-card {
        padding: 18px 20px;
    }
    
    #forgot-password-logo i,
    #reset-password-logo i {
        font-size: 32px;
    }
    
    #forgot-password-logo h1,
    #reset-password-logo h1 {
        font-size: 20px;
    }
}

@media screen and (max-width: 360px) {
    #forgot-password-card,
    #reset-password-card {
        padding: 15px 15px;
    }
    
    #forgot-password-logo h1,
    #reset-password-logo h1 {
        font-size: 18px;
    }
}

/* For very short heights */
@media screen and (max-height: 600px) {
    #forgot-password-container,
    #reset-password-container {
        padding: 5px;
    }
    
    #forgot-password-card,
    #reset-password-card {
        padding: 12px 20px;
    }
    
    #forgot-password-logo,
    #reset-password-logo {
        margin-bottom: 8px;
    }
    
    #forgot-password-logo i,
    #reset-password-logo i {
        font-size: 28px;
        margin-bottom: 2px;
    }
}


