/**
 * Nikhil Madrasi Marriage Bureau - Modern Frontend Custom Stylesheet
 * Brand Colors: #484e77 (Deep Indigo), #dcb349 (Warm Amber Gold)
 * Fonts: "Libre Baskerville", serif (Headings) | "Roboto", sans-serif (Body)
 */

:root {
    --nmmb-primary: #484e77;
    --nmmb-primary-dark: #303554;
    --nmmb-primary-light: #f4f5fa;
    --nmmb-accent: #dcb349;
    --nmmb-accent-hover: #c89e34;
    --nmmb-card-bg: #ffffff;
    --nmmb-border: #e2e8f0;
    --nmmb-text-dark: #1e293b;
    --nmmb-text-muted: #64748b;
}

/* ==========================================================================
   1. Candidate Directory & Dashboard Styles (welcome.php & search-by-caste.php)
   ========================================================================== */

.directory-wrap {
    padding: 50px 0 80px;
    background-color: #f8fafc;
}

/* Welcome Banner */
.welcome-hero-card {
    background: linear-gradient(135deg, var(--nmmb-primary) 0%, var(--nmmb-primary-dark) 100%);
    border-radius: 16px;
    padding: 32px 36px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(48, 53, 84, 0.15);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.welcome-hero-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(220, 179, 73, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: "Libre Baskerville", serif;
}

.welcome-hero-title span {
    color: var(--nmmb-accent);
}

.welcome-hero-subtitle {
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 0;
    max-width: 680px;
}

.hero-meta-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-meta-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta-badge i {
    color: var(--nmmb-accent);
    font-size: 14px;
}

/* Search & Filter Card */
.search-filter-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--nmmb-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 24px 28px;
    margin-bottom: 30px;
}

.search-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-filter-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-filter-header-title i,
.search-filter-header i {
    font-size: 20px;
    color: var(--nmmb-primary);
}

.search-filter-header-title h4,
.search-filter-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--nmmb-text-dark);
}

.search-back-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nmmb-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-back-link:hover {
    color: var(--nmmb-primary);
}

.search-form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1 1 300px;
}

.search-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-caste-select {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--nmmb-text-dark);
    background-color: #ffffff;
    transition: all 0.25s ease;
    outline: none;
}

.custom-caste-select:focus {
    border-color: var(--nmmb-primary);
    box-shadow: 0 0 0 3px rgba(72, 78, 119, 0.15);
}

.search-submit-btn {
    height: 48px;
    padding: 0 28px;
    background-color: var(--nmmb-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-decoration: none;
}

.search-submit-btn:hover {
    background-color: var(--nmmb-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 179, 73, 0.3);
    transform: translateY(-1px);
}

.btn-clear-filter {
    height: 48px;
    padding: 0 20px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-clear-filter:hover {
    background-color: #e2e8f0;
    color: var(--nmmb-text-dark);
}

/* Filter Status Bar */
.filter-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 20px;
    border: 1px solid var(--nmmb-border);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-status-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(72, 78, 119, 0.1);
    color: var(--nmmb-primary);
    font-weight: 600;
    font-size: 13.5px;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.count-badge {
    background: rgba(72, 78, 119, 0.1);
    color: var(--nmmb-primary);
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Pending Verification Alert */
.pending-notice-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.pending-notice-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.pending-notice-body h4 {
    font-size: 19px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.pending-notice-body p {
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ==========================================================================
   2. Candidate Member Card Styles
   ========================================================================== */

.candidate-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--nmmb-border);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(72, 78, 119, 0.12);
    border-color: rgba(72, 78, 119, 0.25);
}

.candidate-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
}

.candidate-card:hover .candidate-img {
    transform: scale(1.02);
}

.candidate-info {
    padding: 16px 18px 18px;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    gap: 6px;
}

.candidate-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--nmmb-text-dark);
    margin-bottom: 0;
    font-family: "Libre Baskerville", serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.candidate-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.candidate-name a:hover {
    color: var(--nmmb-primary);
}

.candidate-city {
    font-size: 13.5px;
    color: var(--nmmb-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.candidate-city i {
    color: var(--nmmb-primary);
    font-size: 14px;
}

.candidate-action {
    width: 100%;
    margin-top: 4px;
}

.candidate-btn-view {
    width: 100%;
    height: 38px;
    background-color: #f8fafc;
    color: var(--nmmb-primary);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.candidate-btn-view i {
    font-size: 15px;
}

.candidate-btn-view:hover {
    background-color: var(--nmmb-primary);
    color: #ffffff;
    border-color: var(--nmmb-primary);
    box-shadow: 0 4px 10px rgba(72, 78, 119, 0.25);
    transform: translateY(-1px);
}

/* Empty State */
.empty-state-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--nmmb-border);
    padding: 60px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.empty-state-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--nmmb-text-dark);
    margin-bottom: 8px;
}

.empty-state-card p {
    color: var(--nmmb-text-muted);
    max-width: 480px;
    margin: 0 auto 24px;
    font-size: 15px;
}

/* Pagination */
.directory-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

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

.pagination-list li a {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-list li a:hover {
    background: #f1f5f9;
    border-color: var(--nmmb-primary);
    color: var(--nmmb-primary);
}

.pagination-list li a.active {
    background: var(--nmmb-primary);
    border-color: var(--nmmb-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(72, 78, 119, 0.25);
}

/* ==========================================================================
   3. View Profile Page Modern Styles (view-profile.php)
   ========================================================================== */

.view-profile-wrap {
    padding: 50px 0 80px;
    background-color: #f8fafc;
}

/* Left Sidebar - Profile Showcase Card */
.profile-showcase-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--nmmb-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 30px;
    position: sticky;
    top: 95px;
}

.profile-showcase-photo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--nmmb-border);
}

.profile-showcase-photo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
}

.profile-showcase-card:hover .profile-showcase-photo {
    transform: scale(1.02);
}

.profile-showcase-body {
    padding: 24px 22px;
    text-align: center;
}

.profile-showcase-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--nmmb-text-dark);
    margin-bottom: 6px;
    font-family: "Libre Baskerville", serif;
}

.profile-showcase-id {
    font-size: 13.5px;
    color: var(--nmmb-text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.profile-quick-stats {
    list-style: none;
    padding: 16px 0;
    margin: 0 0 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.profile-quick-stat-item {
    font-size: 13.5px;
    color: var(--nmmb-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-quick-stat-item strong {
    color: var(--nmmb-text-dark);
    font-weight: 600;
}

.profile-showcase-btn {
    width: 100%;
    height: 42px;
    background-color: var(--nmmb-primary);
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.profile-showcase-btn:hover {
    background-color: var(--nmmb-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 179, 73, 0.3);
    transform: translateY(-1px);
}

/* Right Content - Profile Sections */
.profile-section-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--nmmb-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    padding: 26px 30px;
    margin-bottom: 25px;
    transition: border-color 0.2s ease;
}

.profile-section-card:hover {
    border-color: rgba(72, 78, 119, 0.3);
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.profile-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(72, 78, 119, 0.08);
    color: var(--nmmb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.profile-section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--nmmb-text-dark);
    margin-bottom: 0;
    font-family: "Libre Baskerville", serif;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px 24px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--nmmb-text-dark);
    line-height: 1.5;
    word-break: break-word;
}

.profile-subsection-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--nmmb-primary);
    margin: 16px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-subsection-title i {
    font-size: 16px;
}

.profile-text-block {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px 18px;
    border: 1px solid #edf2f7;
    margin-top: 6px;
}

.profile-text-block p {
    margin-bottom: 0;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.7;
}

/* ==========================================================================
   4. Frontend Utility Classes (Replacing Legacy Inline Styles)
   ========================================================================== */

.text-theme-primary {
    color: var(--nmmb-primary) !important;
}

.text-theme-accent {
    color: var(--nmmb-accent) !important;
}

.text-theme-danger {
    color: #ef4444 !important;
}

.section-welcome-title {
    text-align: center;
}

.section-welcome-title span {
    color: var(--nmmb-primary);
}

.footer-contact-icon {
    font-size: 16px;
}

.profile-thumbnail {
    border: 1px solid var(--nmmb-border);
    border-radius: 8px;
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.partner-logo img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* ==========================================================================
   5. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
    .profile-showcase-card {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .welcome-hero-card {
        padding: 24px 20px;
    }
    .welcome-hero-title {
        font-size: 22px;
    }
    .search-filter-card {
        padding: 20px 16px;
    }
    .search-submit-btn, .btn-clear-filter {
        width: 100%;
    }
    .filter-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-section-card {
        padding: 20px 18px;
    }
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .edit-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .edit-profile-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    .edit-profile-nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .photo-upload-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .form-actions-row {
        flex-direction: column;
    }
    .btn-save-custom, .btn-cancel-custom {
        width: 100%;
        justify-content: center;
    }
    .auth-card {
        padding: 28px 20px;
    }
    .auth-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   6. My Profile & Edit Profile Modern Component Styles
   ========================================================================== */

/* Profile Badge Pill */
.profile-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(72, 78, 119, 0.1);
    color: var(--nmmb-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

/* Section Header Edit Button */
.profile-section-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: rgba(72, 78, 119, 0.08);
    color: var(--nmmb-primary);
    border: 1px solid rgba(72, 78, 119, 0.15);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-left: auto;
}

.profile-section-edit-btn i {
    font-size: 14px;
}

.profile-section-edit-btn:hover {
    background-color: var(--nmmb-primary);
    color: #ffffff;
    border-color: var(--nmmb-primary);
    box-shadow: 0 3px 8px rgba(72, 78, 119, 0.2);
    transform: translateY(-1px);
}

/* Alert Banners */
.profile-alert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14.5px;
}

.profile-alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.profile-alert-success i {
    font-size: 24px;
    color: #10b981;
    flex-shrink: 0;
}

.profile-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.profile-alert-danger i {
    font-size: 24px;
    color: #ef4444;
    flex-shrink: 0;
}

/* Profile Showcase Actions */
.profile-action-btn-secondary {
    width: 100%;
    height: 40px;
    background-color: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-action-btn-secondary:hover {
    background-color: #e2e8f0;
    color: var(--nmmb-text-dark);
}

/* Edit Profile Wrapper */
.edit-profile-wrap {
    padding: 50px 0 80px;
    background-color: #f8fafc;
}

/* Edit Profile Nav Bar */
.edit-profile-nav-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--nmmb-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
    margin-bottom: 28px;
}

.edit-profile-nav {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.edit-profile-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.edit-profile-nav-item i {
    font-size: 16px;
    color: var(--nmmb-primary);
    transition: color 0.2s ease;
}

.edit-profile-nav-item:hover {
    background-color: #f1f5f9;
    color: var(--nmmb-primary);
    border-color: #cbd5e1;
}

.edit-profile-nav-item.active {
    background-color: var(--nmmb-primary);
    color: #ffffff;
    border-color: var(--nmmb-primary);
    box-shadow: 0 4px 12px rgba(72, 78, 119, 0.25);
}

.edit-profile-nav-item.active i {
    color: var(--nmmb-accent);
}

/* Edit Profile Card */
.edit-profile-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--nmmb-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 32px 36px;
    margin-bottom: 30px;
}

.edit-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 2px solid #f1f5f9;
}

.edit-profile-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.edit-profile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(72, 78, 119, 0.08);
    color: var(--nmmb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.edit-profile-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--nmmb-text-dark);
    margin-bottom: 4px;
    font-family: "Libre Baskerville", serif;
}

.edit-profile-subtitle {
    font-size: 13.5px;
    color: var(--nmmb-text-muted);
    margin-bottom: 0;
}

.btn-back-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back-profile:hover {
    background-color: #e2e8f0;
    color: var(--nmmb-text-dark);
}

/* Form Elements */
.form-group-custom {
    margin-bottom: 22px;
}

.form-label-custom {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.form-label-custom .text-danger {
    color: #ef4444;
    margin-left: 2px;
}

.form-control-custom,
.form-select-custom {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14.5px;
    color: var(--nmmb-text-dark);
    background-color: #ffffff;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--nmmb-primary);
    box-shadow: 0 0 0 3px rgba(72, 78, 119, 0.12);
}

textarea.form-control-custom {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.form-hint {
    display: block;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 5px;
}

/* Form Section Divider */
.form-section-divider {
    margin: 28px 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section-divider-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--nmmb-primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-divider-title i {
    font-size: 18px;
}

/* Form Actions Row */
.form-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-save-custom {
    height: 46px;
    padding: 0 32px;
    background-color: var(--nmmb-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-save-custom:hover {
    background-color: var(--nmmb-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 179, 73, 0.3);
    transform: translateY(-1px);
}

.btn-cancel-custom {
    height: 46px;
    padding: 0 24px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cancel-custom:hover {
    background-color: #e2e8f0;
    color: var(--nmmb-text-dark);
}

/* Photo Upload Layout */
.photo-upload-flex {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.photo-current-preview {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 2px solid var(--nmmb-border);
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.photo-current-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.photo-upload-content {
    flex-grow: 1;
}

.photo-upload-input-wrap {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.photo-upload-input-wrap:hover {
    border-color: var(--nmmb-primary);
    background-color: #f4f5fa;
}

.photo-upload-input-wrap input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.photo-upload-cloud-icon {
    font-size: 42px;
}

.photo-guidelines-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1e40af;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.photo-guidelines-box i {
    font-size: 18px;
    margin-top: 1px;
}

/* ==========================================================================
   7. Modern Authentication Styles (login.php, register.php, forgot-password.php)
   ========================================================================== */

.auth-wrap {
    padding: 60px 0 90px;
    background-color: #f8fafc;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--nmmb-border);
    box-shadow: 0 10px 30px rgba(72, 78, 119, 0.08);
    padding: 40px 44px;
    margin-bottom: 30px;
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(72, 78, 119, 0.08);
    color: var(--nmmb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    transition: transform 0.3s ease;
}

.auth-card:hover .auth-icon-badge {
    transform: scale(1.05);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--nmmb-text-dark);
    font-family: "Libre Baskerville", serif;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--nmmb-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.auth-forgot-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nmmb-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--nmmb-accent);
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    height: 48px;
    background-color: var(--nmmb-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(72, 78, 119, 0.2);
}

.btn-auth-submit:hover {
    background-color: var(--nmmb-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 179, 73, 0.35);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: var(--nmmb-text-muted);
}

.auth-switch-link {
    font-weight: 600;
    color: var(--nmmb-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-switch-link:hover {
    color: var(--nmmb-accent);
    text-decoration: underline;
}

.alert-action-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
