/* Import Google Fonts - Outfit & Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-main: #f8fafc;
    --bg-gradient: linear-gradient(180deg, #edf2f7 0%, #f8fafc 100%);
    
    /* Glassmorphism panels */
    --panel-bg: rgba(255, 255, 255, 0.75);
    --panel-bg-hover: rgba(255, 255, 255, 0.9);
    --panel-border: rgba(0, 0, 0, 0.08);
    --panel-border-hover: rgba(139, 92, 246, 0.25);
    
    /* Brand Accent Colors */
    --accent-primary: #7c3aed;       /* Violet */
    --accent-primary-rgb: 124, 58, 237;
    --accent-primary-hover: #6d28d9;
    
    --accent-secondary: #0891b2;     /* Cyan */
    --accent-secondary-rgb: 8, 145, 178;
    --accent-secondary-hover: #0369a1;
    
    --accent-success: #10b981;       /* Emerald */
    --accent-warning: #d97706;       /* Amber */
    --accent-danger: #e11d48;        /* Rose */
    --accent-info: #2563eb;          /* Blue */
    
    /* Typography */
    --text-main: #1e293b;            /* Slate-800 */
    --text-muted: #64748b;           /* Slate-500 */
    --text-dark: #0f172a;
    
    /* System Globals */
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Body Styling */
html, body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.25);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
        border-color: rgba(139, 92, 246, 0.5);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Layout Spacing */
.container {
    max-width: 1300px !important;
}

/* Glass Panel Component - Professional Glassmorphism */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 16px 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    background: var(--panel-bg-hover);
    border-color: var(--panel-border-hover);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0f172a;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.25rem; }

.text-gradient-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.text-muted-custom {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Professional Headers & Separators */
.section-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
    margin-bottom: 24px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Navigation System */
.navbar-custom {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}

.navbar-custom .navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.navbar-custom .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.04);
}

/* Custom Styled Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #6d28d9 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 10px rgba(var(--accent-primary-rgb), 0.1);
    transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
    box-shadow: 0 6px 14px rgba(var(--accent-primary-rgb), 0.15);
    transform: translateY(-1.5px);
    color: white;
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #0891b2 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 10px rgba(var(--accent-secondary-rgb), 0.1);
    transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, var(--accent-secondary-hover) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 6px 14px rgba(var(--accent-secondary-rgb), 0.15);
    transform: translateY(-1.5px);
    color: white;
}

.btn-outline-custom {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-main);
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--text-dark);
}

.btn-danger-custom {
    background: linear-gradient(135deg, var(--accent-danger) 0%, #b91c1c 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.1);
    transition: var(--transition-smooth);
}

.btn-danger-custom:hover {
    background: linear-gradient(135deg, #f87171 0%, var(--accent-danger) 100%);
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.15);
    transform: translateY(-1.5px);
    color: white;
}

/* Small Button Modifiers to prevent layout overflow in tables */
.btn-primary-custom.btn-sm,
.btn-secondary-custom.btn-sm,
.btn-outline-custom.btn-sm,
.btn-danger-custom.btn-sm {
    padding: 6px 12px !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-primary-custom.btn-sm:hover,
.btn-secondary-custom.btn-sm:hover,
.btn-outline-custom.btn-sm:hover,
.btn-danger-custom.btn-sm:hover {
    transform: translateY(-1px) !important;
}


/* Stat Cards (Admin Analytics) */
.stat-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 16px !important;
    border-radius: var(--border-radius-md) !important;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 6px 0;
}

/* Custom weight modifiers to soften the overall appearance */
.font-weight-bold {
    font-weight: 500 !important;
}
.fw-bold {
    font-weight: 500 !important;
}

/* Tables - High End Corporate Look */
.custom-table-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

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

.custom-table th {
    background: rgba(0, 0, 0, 0.015);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.custom-table tr.table-row-glass {
    transition: var(--transition-smooth);
}

.custom-table tr.table-row-glass:hover {
    background: rgba(0, 0, 0, 0.015);
}

.custom-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    vertical-align: middle;
    font-size: 0.875rem;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

/* Professional Form Controls */
.form-control-custom {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    border-radius: var(--border-radius-md) !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    transition: var(--transition-smooth) !important;
}

.form-control-custom:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15) !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.form-control-custom[readonly] {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--text-muted) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.form-label-custom {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    color: #334155;
    margin-bottom: 6px;
    display: inline-block;
}

/* Custom Badges (Modern Pill Design) */
.badge-custom {
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-width: 1px;
    border-style: solid;
}

.badge-eligible {
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.2);
}

.badge-applied {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-selected {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

.badge-skipped {
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.2);
}

.badge-withdrawn {
    background: rgba(217, 70, 239, 0.08);
    color: #a21caf;
    border-color: rgba(217, 70, 239, 0.2);
}

.badge-marquee {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    color: #6d28d9;
    border-color: rgba(192, 132, 252, 0.3);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
    animation: pulseGlow 3s infinite ease-in-out;
}

/* Skip Limit Indicator Warning Styles */
.policy-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-glow {
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Pulse Animation for Critical warning blocks */
.animate-pulse {
    border-color: rgba(239, 68, 68, 0.5) !important;
    animation: pulseGlow 2s infinite ease-in-out;
}

/* Stepper Component */
.stepper-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.stepper-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-label {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

.stepper-step.active .step-circle {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.2);
}

.stepper-step.active .step-label {
    color: #0f172a;
}

.stepper-step.completed .step-circle {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.stepper-step.completed .step-label {
    color: #10b981;
}

/* Alert Boxes Styling */
.alert-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    color: #1e293b;
    padding: 16px 20px;
}

.alert-custom-success {
    border-left: 4px solid var(--accent-success);
}

.alert-custom-danger {
    border-left: 4px solid var(--accent-danger);
}

/* Sidebar Navigation Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.sidebar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 5px;
    margin-bottom: 0;
    text-decoration: none !important;
}

.sidebar-brand i {
    color: var(--accent-primary);
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.sidebar-toggle-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile Header style */
.mobile-header {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    align-items: center;
    justify-content: space-between;
}

.mobile-brand {
    font-weight: 600;
    font-size: 1.15rem;
    color: #0f172a;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-brand i {
    color: var(--accent-primary);
}

/* Scrollable Menu Wrapper inside Sidebar */
.sidebar-menu-wrapper {
    overflow-y: auto;
    flex-grow: 1;
    margin-right: -10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

.sidebar-menu-wrapper::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.sidebar-menu-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu-title {
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 20px 0 8px 12px;
    font-weight: 500;
}

.sidebar-link {
    color: var(--text-muted);
    text-decoration: none !important;
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

.sidebar-link i {
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.sidebar-link:hover {
    color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.04);
}

.sidebar-link.active {
    color: #ffffff !important;
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.sidebar-link.active i {
    color: #ffffff !important;
}

/* Submenu layout styles */
.sidebar-submenu-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 8px 0;
    display: none; /* Open state toggled by class */
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    margin-left: 24px;
    padding-left: 12px;
}

.sidebar-submenu-link {
    color: var(--text-muted);
    text-decoration: none !important;
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.sidebar-submenu-link:hover {
    color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.04);
}

.sidebar-submenu-link.active {
    color: var(--accent-primary) !important;
    background: rgba(124, 58, 237, 0.08) !important;
    font-weight: 600;
}

.submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Active submenu visual indicators */
.submenu-open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu-open .sidebar-submenu-list {
    display: flex;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
    min-height: 100vh;
    transition: var(--transition-smooth);
    width: calc(100% - 280px);
}

.sidebar-footer {
    padding-left: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: auto;
}

/* Collapsed state for Desktop */
.sidebar.collapsed {
    width: 80px;
    padding: 30px 10px;
    align-items: center;
}

.sidebar.collapsed .sidebar-brand span,
.sidebar.collapsed .sidebar-menu-title,
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .sidebar-footer span,
.sidebar.collapsed .submenu-arrow,
.sidebar.collapsed .sidebar-submenu-list {
    display: none !important;
}

.sidebar.collapsed .sidebar-brand {
    padding-left: 0;
}

.sidebar.collapsed .sidebar-link {
    padding: 12px;
    justify-content: center;
    border-radius: 50%;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    width: 100%;
}

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

/* Off-canvas sidebar behavior on mobile */
@media (max-width: 992px) {
    .mobile-header {
        display: flex;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 280px !important;
        height: 100vh;
        top: 0;
        bottom: 0;
        box-shadow: 15px 0 30px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.98);
        padding-top: 20px;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 24px;
        padding-top: 80px !important; /* Leave space for mobile header */
    }
    /* Backdrop overlay for mobile menu */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        transition: var(--transition-smooth);
    }
    .sidebar-overlay.active {
        display: block;
    }
}

/* Toast Notifications System */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success-icon {
    color: var(--accent-success);
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
}

.toast-error-icon {
    color: var(--accent-danger);
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4));
}

.toast-success-border {
    border-left: 4px solid var(--accent-success);
}

.toast-error-border {
    border-left: 4px solid var(--accent-danger);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.toast-close-btn:hover {
    color: var(--text-dark);
}

/* Tighter global spacings and dividers for clean layout */
hr, .border-secondary, .border-bottom {
    border-color: rgba(15, 23, 42, 0.06) !important;
}

/* Custom Form Tabs - Segmented clean design */
.custom-form-tabs {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    gap: 6px;
}

.custom-form-tabs .nav-item {
    margin-bottom: -1px;
}

.custom-form-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
    transition: var(--transition-smooth) !important;
    border-radius: 6px 6px 0 0 !important;
}

.custom-form-tabs .nav-link:hover {
    color: var(--accent-primary) !important;
    background: rgba(124, 58, 237, 0.04) !important;
    border-bottom-color: rgba(124, 58, 237, 0.2) !important;
}

.custom-form-tabs .nav-link.active {
    color: var(--accent-primary) !important;
    border-bottom: 2px solid var(--accent-primary) !important;
    font-weight: 600 !important;
}

/* Error validation badge next to tab title */
.validation-error-dot {
    font-size: 0.8rem;
    animation: pulseGlow 2s infinite ease-in-out;
}