/**
 * SHUBH XEROX — Admin Portal Custom Stylesheet
 * Executive Midnight Navy Palette with Sapphire & Emerald Accents
 * State of the Art SaaS Aesthetics
 */

:root {
    --sx-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sx-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sx-font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --sx-font-gu: 'Noto Sans Gujarati', 'Shruti', sans-serif;

    /* Executive Midnight & Royal Blue Palette */
    --sx-primary: #0b2239;
    --sx-primary-dark: #071728;
    --sx-primary-light: #163e63;
    --sx-royal-blue: #2563eb;
    --sx-royal-blue-hover: #1d4ed8;
    --sx-royal-blue-subtle: #eff6ff;
    --sx-accent: #2563eb;
    --sx-accent-orange: #f59e0b;
    --sx-accent-crimson: #ef4444;
    --sx-accent-teal: #0d9488;
    --sx-accent-emerald: #059669;
    --sx-accent-purple: #7c3aed;

    --sx-sidebar-width: 260px;
    --sx-bg-light: #fafbfc; /* Crisp Light White Background */
    --sx-card-radius: 14px;
    --sx-border-color: #e2e8f0;
    --sx-border-light: #edf2f7;

    /* Multi-layered Soft Shadows */
    --sx-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --sx-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
    --sx-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --sx-shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    --sx-shadow-hover: 0 18px 32px -6px rgba(15, 23, 42, 0.1), 0 8px 14px -4px rgba(15, 23, 42, 0.05);
    --sx-glow-blue: 0 4px 18px rgba(37, 99, 235, 0.35);
    --sx-glow-emerald: 0 4px 18px rgba(5, 150, 105, 0.35);
}

[data-bs-theme="dark"] {
    --sx-bg-light: #090e17;
    --sx-primary-dark: #05080e;
    --sx-border-color: #1f2937;
    --sx-border-light: #162030;
    --sx-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --sx-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Master Typography - Natural, crisp kerning with zero letter spread */
body {
    font-family: var(--sx-font-sans);
    font-weight: 400;
    background-color: var(--sx-bg-light);
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.89rem;
    line-height: 1.48;
    letter-spacing: normal;
}

/* Headings - Modern, punchy, compact */
h1, h2, h3, h4, h5, h6,
.clean-card-title-text > span:first-of-type,
.navbar-brand {
    font-family: var(--sx-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* Form labels - Crisp, high clarity, normal spacing */
label,
.form-label {
    font-family: var(--sx-font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: normal;
    margin-bottom: 0.30rem;
    line-height: 1.35;
}

/* Input fields - 14px, normal kerning without stretching */
input,
select,
textarea,
button,
.form-control,
.form-select {
    font-family: var(--sx-font-sans);
    font-size: 14px;
    letter-spacing: normal;
}

/* Dedicated Gujarati typography for pristine rendering */
.gujarati,
.gujarati-text,
.sx-label-gu,
.clean-card-title-gu,
.font-gujarati,
[lang="gu"] {
    font-family: var(--sx-font-gu) !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.sx-label-gu {
    font-size: 0.78rem;
    font-weight: 400;
    color: #64748b;
    display: inline-block;
}

/* Record ID, Numbers, Monospace - JetBrains Mono, tight & compact */
.record-id,
.badge-code,
.sx-code-badge,
.font-monospace,
.sx-phone-number,
.sx-mono-num {
    font-family: var(--sx-font-mono) !important;
    font-weight: 600;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Section headings */
.section-title,
.sx-section-title {
    font-weight: 600;
    letter-spacing: normal;
}

.sx-section-badge {
    letter-spacing: normal;
}

[data-bs-theme="dark"] body {
    color: #f1f5f9;
}

/* ========================================================
   Sidebar Layout & Modern Luxury Aesthetics
   ======================================================== */
.sx-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sx-sidebar-width);
    background: linear-gradient(180deg, #071728 0%, #0d2847 60%, #081a30 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    z-index: 1040;
    transition: all 0.25s ease-in-out;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.sx-sidebar .brand-header {
    padding: 1.35rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
}

.sx-sidebar .brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 3px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.sx-sidebar .brand-title {
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.sx-sidebar .brand-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sx-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 50rem;
    padding: 1px 7px;
    font-size: 0.65rem;
    color: #34d399;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sx-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: sxPulse 2s infinite;
}

@keyframes sxPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sx-sidebar-nav {
    padding: 1.25rem 0.85rem;
    flex: 1;
    overflow-y: auto;
}

.sx-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.45);
    padding: 0.75rem 0.75rem 0.35rem;
}

.sx-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.68rem 0.95rem;
    border-radius: 10px;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-sidebar .nav-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    transition: transform 0.2s ease;
}

.sx-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
}

.sx-sidebar .nav-link:hover i {
    transform: scale(1.1);
}

.sx-sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.sx-sidebar .nav-link.active i {
    color: #ffffff;
}

.sx-nav-badge {
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(147, 197, 253, 0.4);
    color: #93c5fd;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50rem;
    letter-spacing: 0.3px;
}

.sx-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.sx-user-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    backdrop-filter: blur(8px);
}

.sx-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.sx-sidebar-logout-btn {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.15rem;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.sx-sidebar-logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* ========================================================
   Main Content Area Layout
   ======================================================== */
.sx-app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.sx-main-wrapper {
    margin-left: var(--sx-sidebar-width);
    width: calc(100% - var(--sx-sidebar-width));
    max-width: calc(100% - var(--sx-sidebar-width));
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: margin-left 0.25s ease-in-out, width 0.25s ease-in-out, max-width 0.25s ease-in-out;
}

.sx-topbar {
    height: 70px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

[data-bs-theme="dark"] .sx-topbar {
    background: rgba(11, 17, 30, 0.92);
    border-bottom-color: rgba(30, 41, 59, 0.85);
}

.sx-content {
    padding: 1.85rem;
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========================================================
   Topbar Search Pill & Modern Buttons
   ======================================================== */
.sx-topbar-search {
    position: relative;
    width: 320px;
}

.sx-topbar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.sx-topbar-search-input {
    border-radius: 50rem !important;
    background: #f1f5f9 !important;
    border: 1.5px solid transparent !important;
    padding-left: 2.35rem !important;
    padding-right: 1rem !important;
    height: 38px !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
}

.sx-topbar-search-input:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.15) !important;
}

[data-bs-theme="dark"] .sx-topbar-search-input {
    background: #1e293b !important;
    color: #ffffff !important;
}

.sx-topbar-search-kbd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.68rem;
    font-family: var(--sx-font-mono);
    color: #64748b;
    font-weight: 600;
    pointer-events: none;
}

[data-bs-theme="dark"] .sx-topbar-search-kbd {
    background: #334155;
    color: #94a3b8;
}

.sx-btn-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.sx-btn-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
    color: #ffffff !important;
}

.sx-btn-gradient:active {
    transform: scale(0.98);
}

.sx-theme-btn {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sx-theme-btn:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

[data-bs-theme="dark"] .sx-theme-btn {
    background: #1e293b;
    border-color: #334155;
    color: #fbbf24;
}

/* ========================================================
   Cards, Surfaces & KPI Stat Cards
   ======================================================== */
.sx-card {
    background: var(--bs-card-bg, #ffffff);
    border: 1px solid var(--sx-border-color);
    border-radius: var(--sx-card-radius);
    box-shadow: var(--sx-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sx-card:hover {
    box-shadow: var(--sx-shadow-hover);
}

.sx-card-header {
    background: transparent;
    border-bottom: 1px solid var(--sx-border-color);
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.sx-dashboard-search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: var(--sx-shadow);
}

[data-bs-theme="dark"] .sx-dashboard-search-card {
    background: #111827;
    border-color: #1f2937;
}

.sx-stat-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: var(--sx-shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] .sx-stat-card {
    background: #111827;
    border-color: #1f2937;
}

.sx-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sx-shadow-hover);
    border-color: #cbd5e1;
}

.sx-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.sx-stat-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.sx-stat-icon-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28);
}

.sx-stat-icon-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(6, 182, 212, 0.28);
}

.sx-stat-icon-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28);
}

.sx-stat-val {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0.25rem 0 0;
    letter-spacing: -0.8px;
    font-family: var(--sx-font-sans);
}

.text-purple {
    color: #7c3aed !important;
}

.sx-stat-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin: 0;
}

/* ========================================================
   Form Sections (Section A through H) — Modern, Clean UI
   ======================================================== */
.sx-form-section {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-bottom: 1.35rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-bs-theme="dark"] .sx-form-section {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sx-form-section:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(27, 104, 179, 0.08);
}

.sx-section-header {
    background: #1b68b3;
    color: #ffffff;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #165696;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

[data-bs-theme="dark"] .sx-section-header {
    background: #1e40af;
    border-bottom-color: #1e3a8a;
}

.sx-section-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    letter-spacing: normal;
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-transform: uppercase;
}

.sx-section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.sx-section-title-gu {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--sx-font-gu, 'Noto Sans Gujarati', sans-serif);
}

.sx-section-body {
    padding: 1.25rem 1.35rem;
    background: #ffffff;
}

[data-bs-theme="dark"] .sx-section-body {
    background: #0f172a;
}

/* Crisp, readable labels with bilingual Gujarati text */
.form-label {
    font-family: var(--sx-font-sans);
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1.35;
    margin-bottom: 0.32rem;
    color: #334155;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.28rem;
    letter-spacing: normal;
}

[data-bs-theme="dark"] .form-label {
    color: #e2e8f0;
}

.sx-label-gu {
    font-family: var(--sx-font-gu, 'Noto Sans Gujarati', sans-serif);
    font-size: 0.78rem;
    font-weight: 400;
    color: #64748b;
}

[data-bs-theme="dark"] .sx-label-gu {
    color: #94a3b8;
}

.form-label .text-danger,
.clean-req {
    color: #ef4444 !important;
    font-weight: 600;
    margin-left: 0.1rem;
}

/* Clean, crisp input fields (Exact match to official portal) */
.form-control, .form-select {
    font-family: var(--sx-font-sans);
    min-height: 38px;
    height: 38px;
    border-radius: 4px;
    padding: 0.42rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 450;
    line-height: 1.4;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.form-control:focus, .form-select:focus {
    border-color: #1b68b3;
    box-shadow: 0 0 0 2px rgba(27, 104, 179, 0.16);
    background-color: #ffffff;
    outline: none;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
    background-color: #1e293b;
}

.form-control-sm, .form-select-sm {
    min-height: 34px;
    height: 34px;
    padding: 0.3rem 0.55rem;
    font-size: 0.82rem;
}

/* Gujarati Text Font Hint */
.gujarati-input {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
}

/* Sticky Action Footer Bar with ample breathing margin */
.sx-form-container-pad {
    padding-bottom: 110px;
}

.sx-sticky-footer-bar {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 25px rgba(15, 61, 100, 0.08);
    border-radius: 14px 14px 0 0;
}

[data-bs-theme="dark"] .sx-sticky-footer-bar {
    background: rgba(15, 23, 42, 0.97);
    border-top-color: #334155;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.4);
}

/* ========================================================
   Education Repeatable Cards
   ======================================================== */
.sx-edu-card {
    border: 1px solid var(--sx-border-color);
    border-left: 4px solid var(--sx-accent);
    border-radius: 8px;
    padding: 1.15rem;
    margin-bottom: 1rem;
    background: var(--bs-card-bg);
    position: relative;
    transition: all 0.2s ease;
}

.sx-edu-card:hover {
    border-color: var(--sx-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ========================================================
   Photo & Signature Upload Area
   ======================================================== */
.sx-upload-box {
    border: 2px dashed var(--sx-border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    background: rgba(15, 61, 100, 0.015);
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .sx-upload-box {
    background: rgba(255, 255, 255, 0.02);
}

.sx-upload-box:hover {
    border-color: var(--sx-accent);
    background: rgba(25, 118, 210, 0.04);
}

/* ========================================================
   Main Documents (Photo & Signature) Premium Styling
   ======================================================== */
.sx-main-doc-card {
    background: var(--bs-card-bg, #ffffff);
    border: 1px solid var(--sx-border-color);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.25s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 61, 100, 0.04);
}

.sx-main-doc-card:hover {
    border-color: var(--sx-accent);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
    transform: translateY(-2px);
}

.sx-main-doc-card.doc-uploaded {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, var(--bs-card-bg, #ffffff) 100%);
}

.sx-main-doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--sx-border-color);
}

.sx-doc-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sx-preview-viewport-photo {
    width: 135px;
    height: 165px;
    border-radius: 10px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    background: #f1f5f9;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.sx-preview-viewport-photo:hover {
    transform: scale(1.03);
}

.sx-preview-viewport-sig {
    width: 220px;
    height: 90px;
    border-radius: 8px;
    border: 2px dashed #94a3b8;
    background: #ffffff;
    padding: 6px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.sx-preview-viewport-sig:hover {
    transform: scale(1.03);
}

.sx-dropzone {
    border: 2px dashed var(--sx-border-color);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    background: rgba(15, 61, 100, 0.015);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sx-dropzone:hover, .sx-dropzone.dragover {
    border-color: var(--sx-accent);
    background: rgba(25, 118, 210, 0.05);
}

.sx-preview-thumb {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--sx-border-color);
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sx-preview-signature {
    width: 200px;
    height: 80px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid var(--sx-border-color);
    margin-bottom: 0.75rem;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========================================================
   Document Gallery & Individual Download Cards
   ======================================================== */
.sx-doc-item-card {
    background: var(--bs-card-bg, #ffffff);
    border: 1px solid var(--sx-border-color);
    border-radius: 12px;
    padding: 1.15rem;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sx-doc-item-card:hover {
    border-color: var(--sx-accent);
    box-shadow: 0 6px 18px rgba(15, 61, 100, 0.08);
    transform: translateY(-2px);
}

.sx-doc-badge-pdf {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.sx-doc-badge-img {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.sx-single-dl-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ========================================================
   Tables & Badges
   ======================================================== */
.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--bs-secondary-color);
    background: rgba(15, 61, 100, 0.03);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.badge-code {
    font-family: var(--sx-font-mono);
    font-size: 0.84rem;
    background: #eff6ff;
    color: #1b68b3;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: normal;
}

[data-bs-theme="dark"] .badge-code {
    background: rgba(27, 104, 179, 0.25);
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.3);
}

/* ========================================================
   Buttons
   ======================================================== */
.btn-primary {
    background-color: #1b68b3;
    border-color: #1b68b3;
    color: #ffffff;
    font-weight: 550;
    font-size: 0.875rem;
    border-radius: 4px;
    letter-spacing: -0.01em;
    padding: 0.45rem 1rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #155594;
    border-color: #155594;
    color: #ffffff;
}

.btn-accent {
    background-color: #1b68b3;
    border-color: #1b68b3;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 550;
}

.btn-accent:hover {
    background-color: #155594;
    color: #ffffff;
}

/* ========================================================
   Responsive Breakpoints
   ======================================================== */
@media (max-width: 991.98px) {
    .sx-sidebar {
        transform: translateX(-100%);
    }

    .sx-sidebar.show {
        transform: translateX(0);
    }

    .sx-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .sx-topbar {
        padding: 0 1rem;
    }

    .sx-content {
        padding: 1rem;
    }
}

/* ========================================================
   Print Styles
   ======================================================== */
@media print {
    .sx-sidebar, .sx-topbar, .btn, .no-print, .alert {
        display: none !important;
    }

    body, .sx-main-wrapper {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #000000 !important;
    }

    .sx-content {
        padding: 0 !important;
    }

    .sx-card, .sx-form-section {
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
        break-inside: avoid;
    }
}

/* ========================================================
   Clean All Records Table UI (Matching User Screenshot)
   ======================================================== */
.sx-records-card {
    background: var(--bs-card-bg, #ffffff);
    border: 1px solid var(--sx-border-color);
    border-radius: 14px;
    box-shadow: var(--sx-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sx-records-card:hover {
    box-shadow: var(--sx-shadow-hover);
    border-color: #cbd5e1;
}

[data-bs-theme="dark"] .sx-records-card {
    background: #111827;
    border-color: #1f2937;
}

.sx-records-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.sx-records-table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.sx-records-table tbody tr {
    transition: background-color 0.15s ease;
}

.sx-records-table tbody tr:hover {
    background-color: #f8fafc;
}

.sx-records-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    background-color: #ffffff;
}

/* 1. Code Badge Box */
.sx-code-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 12px;
    min-width: 96px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-code-badge:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-1.5px);
}

.sx-code-top {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: normal;
    font-family: var(--sx-font-mono);
    display: block;
    white-space: nowrap;
}

.sx-code-bottom {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0b2239;
    letter-spacing: normal;
    font-family: var(--sx-font-mono);
    display: block;
    white-space: nowrap;
}

/* 2. Customer Name Text */
.sx-name-main {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.sx-name-main:hover {
    color: #2563eb;
}

.sx-name-sub {
    font-family: var(--sx-font-gu);
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 3px;
}

/* 3. Phone Number */
.sx-phone-number {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.3px;
    font-family: var(--sx-font-mono);
    white-space: nowrap;
}

/* 4. Application Type Pill */
.sx-app-type-pill {
    display: inline-block;
    padding: 4px 14px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

/* 5. Files Badges */
.sx-files-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50rem;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.sx-files-pill-active {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.sx-files-pill-active:hover {
    background-color: #d1fae5;
    color: #065f46;
}

.sx-files-pill-none {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

/* 6. Date Text */
.sx-date-text {
    font-size: 0.86rem;
    color: #475569;
    white-space: nowrap;
    font-weight: 500;
}

/* 7. Action Button Group */
.sx-action-group {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sx-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    border: none;
    background: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sx-action-btn:not(:last-child) {
    border-right: 1px solid #cbd5e1;
}

.sx-action-btn-view {
    color: #2563eb;
}

.sx-action-btn-view:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.sx-action-btn-edit {
    color: #64748b;
}

.sx-action-btn-edit:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

.sx-action-btn-delete {
    color: #ef4444;
}

.sx-action-btn-delete:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* ========================================================
   Clean Form Field Capitalization (.sx-uppercase-form)
   ======================================================== */
.sx-uppercase-form input[type="text"]:not([type="email"]):not(.no-uppercase),
.text-uppercase-input {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sx-uppercase-form input[type="email"] {
    text-transform: lowercase !important;
    letter-spacing: normal;
}

/* ========================================================
   Education Table & Live Column Styles
   ======================================================== */
.sx-edu-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.sx-edu-table th {
    background: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.65rem;
    border-bottom: 2px solid #cbd5e1;
    color: #334155;
    white-space: nowrap;
}

[data-bs-theme="dark"] .sx-edu-table th {
    background: #1e293b;
    border-bottom: 2px solid #334155;
    color: #e2e8f0;
}

.sx-edu-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.88rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

[data-bs-theme="dark"] .sx-edu-table td {
    border-bottom: 1px solid #1e293b;
}

.sx-edu-row-new {
    animation: sxHighlightRow 1.2s ease-out;
}

@keyframes sxHighlightRow {
    0% { background-color: rgba(25, 118, 210, 0.2); }
    100% { background-color: transparent; }
}

/* Quick Jump Sticky Navigation */
.sx-quick-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
}

[data-bs-theme="dark"] .sx-quick-nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sx-quick-nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sx-quick-nav-link:hover {
    color: var(--sx-accent);
    background: rgba(25, 118, 210, 0.08);
    border-color: rgba(25, 118, 210, 0.2);
}

/* ========================================================
   Executive Field Box System: Crystal-Clear Field & Value Separation
   ======================================================== */
.sx-field-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.05rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    position: relative;
}

[data-bs-theme="dark"] .sx-field-box {
    background: #111827;
    border-color: #1f2937;
    box-shadow: none;
}

.sx-field-box:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    transform: translateY(-1.5px);
}

[data-bs-theme="dark"] .sx-field-box:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sx-field-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.sx-field-label-en {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

[data-bs-theme="dark"] .sx-field-label-en {
    color: #94a3b8;
}

.sx-field-label-gu {
    font-family: var(--sx-font-gu);
    font-size: 0.72rem;
    font-weight: 500;
    color: #2563eb;
}

[data-bs-theme="dark"] .sx-field-label-gu {
    color: #93c5fd;
}

.sx-field-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

[data-bs-theme="dark"] .sx-field-value {
    color: #f8fafc;
}

.sx-field-box-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: #bfdbfe;
}

.sx-field-box-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: #a7f3d0;
}

.sx-field-value-primary {
    color: #1d4ed8 !important;
}

.sx-field-value-mono {
    font-family: var(--sx-font-mono) !important;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.sx-field-empty {
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Detail Row in View Profile (Fallback) */
.sx-detail-table th {
    width: 32%;
    color: #64748b;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.sx-detail-table td {
    font-size: 0.92rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

[data-bs-theme="dark"] .sx-detail-table th,
[data-bs-theme="dark"] .sx-detail-table td {
    border-bottom: 1px solid #1e293b;
}

/* ========================================================
   Responsive Breakpoints & Mobile Polish
   ======================================================== */
@media (max-width: 991.98px) {
    .sx-sidebar {
        transform: translateX(-100%);
    }

    .sx-sidebar.show {
        transform: translateX(0);
    }

    .sx-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .sx-topbar {
        padding: 0 1rem;
    }

    .sx-content {
        padding: 1rem;
    }
}

@media (min-width: 992px) {
    .sx-main-wrapper {
        margin-left: var(--sx-sidebar-width) !important;
        width: calc(100% - var(--sx-sidebar-width)) !important;
        max-width: calc(100% - var(--sx-sidebar-width)) !important;
    }
}

/* Document cards in show page */
.sx-doc-preview-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.sx-doc-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
    border-color: #93c5fd;
}

/* 1-Click Document Action Buttons (View, JPG, PDF) */
.sx-doc-btn-view {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    border-radius: 7px !important;
    padding: 0.35rem 0.65rem !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    text-decoration: none !important;
}

.sx-doc-btn-view:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.sx-doc-btn-jpg {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    border-radius: 7px !important;
    padding: 0.35rem 0.65rem !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    text-decoration: none !important;
}

.sx-doc-btn-jpg:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.sx-doc-btn-pdf {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    border-radius: 7px !important;
    padding: 0.35rem 0.65rem !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    text-decoration: none !important;
}

.sx-doc-btn-pdf:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* ========================================================
   Executive Candidate Profile Hero Card
   ======================================================== */
.sx-profile-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.sx-profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #10b981 100%);
}

.sx-profile-avatar-box {
    position: relative;
    width: 96px;
    height: 108px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.sx-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sx-profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
}

.sx-profile-name-en {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sx-profile-name-gu {
    font-family: var(--sx-font-gu) !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: 0.15rem;
}

/* ========================================================
   Executive Field Box System (.sx-field-box)
   Crystal clear visual separation of Field Name vs Entered Value
   ======================================================== */
.sx-field-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    min-height: 78px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sx-field-box:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.08);
    transform: translateY(-1.5px);
}

/* Label Container: distinct top section */
.sx-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed #e2e8f0;
}

.sx-field-label-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* English Field Title */
.sx-field-label-en {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    line-height: 1.2;
}

/* Gujarati Subtitle */
.sx-field-label-gu {
    font-family: var(--sx-font-gu) !important;
    font-size: 0.74rem;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.2;
}

/* The Written Text / Value Container */
.sx-field-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Monospace text for phone numbers, IDs, Aadhaar, Bank Accounts */
.sx-field-value-mono {
    font-family: var(--sx-font-mono) !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f172a;
}

.sx-field-value-primary {
    color: #1d4ed8;
}

/* Highlight variations */
.sx-field-box-highlight {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-color: #bfdbfe;
    border-left: 4px solid #2563eb;
}

.sx-field-box-highlight .sx-field-label-en {
    color: #1d4ed8;
}

.sx-field-box-success {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #bbf7d0;
    border-left: 4px solid #059669;
}

.sx-field-box-success .sx-field-label-en {
    color: #047857;
}

.sx-field-box-warning {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-color: #fde68a;
    border-left: 4px solid #d97706;
}

/* Empty field indicator */
.sx-field-empty {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85rem;
    font-style: italic;
}

/* Copy to Clipboard Icon Button */
.sx-copy-btn {
    opacity: 0.6;
    transition: all 0.2s;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 4px;
    color: #64748b;
    border-radius: 4px;
}

.sx-copy-btn:hover {
    opacity: 1;
    color: #2563eb;
    background: #eff6ff;
    transform: scale(1.1);
}

/* Quick Anchor Nav */
.sx-quick-nav {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    padding: 0.65rem 1rem;
    position: sticky;
    top: 75px;
    z-index: 1010;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sx-quick-nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sx-quick-nav-link:hover, .sx-quick-nav-link:focus {
    background: #2563eb;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Education Table Luxury Styling */
.sx-edu-table {
    margin-bottom: 0;
}

.sx-edu-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 0.95rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.sx-edu-table tbody td {
    padding: 0.85rem 0.95rem;
    vertical-align: middle;
    font-size: 0.88rem;
    border-bottom: 1px solid #edf2f7;
}

.sx-edu-table tbody tr:hover {
    background-color: #f8faff;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .sx-profile-hero {
    background: linear-gradient(135deg, #111827 0%, #0b1120 100%);
    border-color: #1f2937;
}

[data-bs-theme="dark"] .sx-profile-name-en {
    color: #f8fafc;
}

[data-bs-theme="dark"] .sx-profile-name-gu {
    color: #60a5fa;
}

[data-bs-theme="dark"] .sx-field-box {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .sx-field-box:hover {
    border-color: #374151;
}

[data-bs-theme="dark"] .sx-field-label {
    border-bottom-color: #1f2937;
}

[data-bs-theme="dark"] .sx-field-label-en {
    color: #94a3b8;
}

[data-bs-theme="dark"] .sx-field-label-gu {
    color: #60a5fa;
}

[data-bs-theme="dark"] .sx-field-value {
    color: #f8fafc;
}

[data-bs-theme="dark"] .sx-field-value-mono {
    color: #f8fafc;
}

[data-bs-theme="dark"] .sx-field-box-highlight {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, #111827 100%);
    border-color: #1e3a8a;
    border-left-color: #3b82f6;
}

[data-bs-theme="dark"] .sx-field-box-success {
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.12) 0%, #111827 100%);
    border-color: #064e3b;
    border-left-color: #10b981;
}

[data-bs-theme="dark"] .sx-quick-nav {
    background: rgba(17, 24, 39, 0.95);
    border-color: #1f2937;
}

[data-bs-theme="dark"] .sx-quick-nav-link {
    background: #1f2937;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .sx-edu-table thead th {
    background: #1f2937;
    color: #94a3b8;
    border-bottom-color: #374151;
}

[data-bs-theme="dark"] .sx-edu-table tbody td {
    border-bottom-color: #1f2937;
}

[data-bs-theme="dark"] .sx-edu-table tbody tr:hover {
    background-color: #1e293b;
}

/* ========================================================
   Clean, Neat & Professional Form & Profile Design System
   Exact visual feel: solid royal blue header, sharp clean inputs, crisp typography
   ======================================================== */
.clean-form-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

[data-bs-theme="dark"] .clean-form-wrapper {
    background: #0f172a;
    border-color: #1e3a8a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.clean-top-strip {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

[data-bs-theme="dark"] .clean-top-strip {
    border-bottom-color: #1e293b;
}

.clean-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .clean-page-title {
    color: #f1f5f9;
}

/* Solid Royal Blue Section Card (Exact Match to User Reference Screenshot) */
.clean-form-card {
    border: 1px solid #1b68b3;
    border-radius: 4px;
    background: #ffffff;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(27, 104, 179, 0.08);
}

[data-bs-theme="dark"] .clean-form-card {
    background: #0f172a;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.clean-card-header {
    background: #1b68b3;
    color: #ffffff;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-bs-theme="dark"] .clean-card-header {
    background: #1e40af;
}

.clean-card-title-text {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.clean-card-title-gu {
    font-family: var(--sx-font-gu);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
}

.clean-card-body {
    padding: 1.15rem 1.25rem;
    background: #ffffff;
}

[data-bs-theme="dark"] .clean-card-body {
    background: #0f172a;
}

/* Clean Input Fields, Selects & Labels */
.clean-label {
    font-family: var(--sx-font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

[data-bs-theme="dark"] .clean-label {
    color: #f1f5f9;
}

.clean-req {
    color: #dc2626;
    font-weight: 700;
}

.clean-label-gu {
    font-family: var(--sx-font-gu);
    font-weight: 400;
    font-size: 0.8rem;
    color: #64748b;
}

[data-bs-theme="dark"] .clean-label-gu {
    color: #94a3b8;
}

.clean-form-card .form-control,
.clean-form-card .form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    height: 38px;
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
    color: #212529;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

[data-bs-theme="dark"] .clean-form-card .form-control,
[data-bs-theme="dark"] .clean-form-card .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.clean-form-card .form-control:focus,
.clean-form-card .form-select:focus {
    border-color: #1b68b3;
    box-shadow: 0 0 0 2px rgba(27, 104, 179, 0.2);
    outline: none;
}

[data-bs-theme="dark"] .clean-form-card .form-control:focus,
[data-bs-theme="dark"] .clean-form-card .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Radio Button Group (Clean inline layout) */
.clean-radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.15rem;
    min-height: 38px;
    padding: 0.2rem 0;
}

.clean-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .clean-radio-item {
    color: #e2e8f0;
}

.clean-radio-item input[type="radio"] {
    cursor: pointer;
    accent-color: #1b68b3;
    width: 17px;
    height: 17px;
    margin: 0;
}

.clean-sub-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.2rem;
}

[data-bs-theme="dark"] .clean-sub-hint {
    color: #94a3b8;
}

/* Profile View & Clean Slip Table */
.clean-profile-header {
    background: linear-gradient(135deg, #1b68b3 0%, #0f3d64 100%);
    color: #ffffff;
    border-radius: 4px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.5rem;
}

.clean-slip-table {
    width: 100%;
    border-collapse: collapse;
}

.clean-slip-table th,
.clean-slip-table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

[data-bs-theme="dark"] .clean-slip-table th,
[data-bs-theme="dark"] .clean-slip-table td {
    border-color: #1f2937;
}

.clean-slip-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    width: 25%;
}

[data-bs-theme="dark"] .clean-slip-table th {
    background: #111827;
    color: #94a3b8;
}

.clean-slip-table td {
    background: #ffffff;
    color: #0f172a;
    font-weight: 500;
}

[data-bs-theme="dark"] .clean-slip-table td {
    background: #0b1322;
    color: #f1f5f9;
}



