/**
 * rentbud-custom.css - Enhanced Custom Styles
 * Modern, cohesive design system with all application styles
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary: #14B8A6;           /* Teal - Primary brand color */
    --primary-dark: #0F9B8E;      /* Darker teal for hover states */
    --primary-light: #5EEAD4;     /* Light teal for accents */
    
    /* Neutrals */
    --dark: #1a1a1a;              /* Almost black */
    --dark-alt: #2C3E50;          /* Navy dark */
    --gray-900: #1F2937;
    --gray-800: #374151;
    --gray-700: #4B5563;
    --gray-600: #6B7280;
    --gray-500: #9CA3AF;
    --gray-400: #D1D5DB;
    --gray-300: #E5E7EB;
    --gray-200: #F3F4F6;
    --gray-100: #F9FAFB;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-dark: linear-gradient(135deg, #1a1a1a 0%, #2C3E50 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    padding-top: 3.25rem; /* Offset for fixed navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.main-content {
    flex: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== NAVBAR CUSTOMIZATION ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-item {
    transition: background-color var(--transition-fast);
}

.navbar-item:hover {
    background-color: var(--gray-100);
}

.navbar-dropdown {
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--primary);
}

/* User dropdown hover effect */
.navbar-item.has-dropdown:hover .navbar-link {
    background-color: var(--gray-100);
}

/* ===== BUTTONS ===== */
.button {
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.button.is-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

.button.is-primary:active {
    transform: translateY(0);
}

.button.is-light {
    background-color: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.button.is-light:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.button.is-danger {
    background-color: var(--danger);
    color: white;
}

.button.is-danger:hover {
    background-color: #DC2626;
}

.button.is-danger.is-light {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.button.is-danger.is-light:hover {
    background-color: var(--danger);
    color: white;
}

/* ===== CARDS & BOXES ===== */
.box, .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    border: 1px solid var(--gray-200);
    background-color: white;
}

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

/* Don't apply hover transform to form boxes */
.box.form-step,
.application-form-page .box {
    transform: none !important;
}

/* ===== FORMS ===== */
.input, .textarea, .select select {
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-300);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    width: 100%;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
    outline: none;
}

.input::placeholder, .textarea::placeholder {
    color: var(--gray-400);
}

.label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
    display: block;
    font-size: 0.9375rem;
}

.help {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: var(--spacing-xs);
    display: block;
}

/* Required field indicator */
.has-text-danger {
    color: var(--danger) !important;
}

/* ===== MULTI-STEP FORM STYLES ===== */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

/* Timeline connector */
.steps::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--gray-300);
    z-index: 0;
}

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

/* Individual step connectors - not needed with ::before */
.step-item:not(:last-child)::after {
    display: none;
}

.step-marker {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
    color: var(--gray-500);
    transition: all var(--transition-base);
    margin-bottom: 0.5rem;
}

.step-item.is-active .step-marker {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}

.step-item.is-success .step-marker {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.step-item.is-success::after {
    background: var(--success);
}

/* Progress line that fills as you complete steps */
.steps::after {
    content: '';
    position: absolute;
    top: 3rem;
    left: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--success) 0%, var(--primary) 100%);
    z-index: 0;
    transition: width var(--transition-slow);
}

/* Dynamically set width based on active step via JavaScript or inline style */
.steps[data-progress="0"]::after { width: 0%; }
.steps[data-progress="1"]::after { width: 35%; }
.steps[data-progress="2"]::after { width: 70%; }
.steps[data-progress="3"]::after { width: 70%; }

.step-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-title {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.step-item.is-active .step-title {
    color: var(--primary);
    font-weight: 700;
}

.step-item.is-success .step-title {
    color: var(--success);
}

.form-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.reference-entry {
    background: var(--gray-100);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all var(--transition-base);
}

.reference-entry:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
    background: white;
}

.reference-entry .columns {
    margin-bottom: 0;
}

.reference-entry .column {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.reference-entry .field:last-child {
    margin-bottom: 0;
}

.reference-entry .button.remove-reference {
    margin-top: 0.75rem;
}

.reference-entry .button.is-danger.is-light {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.reference-entry .button.is-danger.is-light:hover {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* ===== ICON TEXT COMBINATIONS ===== */
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-text .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== TAGS ===== */
.tag {
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.tag.is-success {
    background-color: var(--success);
}

.tag.is-success.is-light {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.tag.is-warning {
    background-color: var(--warning);
}

.tag.is-warning.is-light {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* ===== TABLES ===== */
.table {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table thead th {
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-weight: 700;
    border-bottom: 2px solid var(--gray-200);
}

.table tbody tr {
    transition: background-color var(--transition-fast);
}

.table.is-hoverable tbody tr:hover {
    background-color: var(--gray-100);
}

.table td, .table th {
    vertical-align: middle;
}

.table-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 2rem;
}

.pagination-link,
.pagination-previous,
.pagination-next {
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.pagination-link.is-current {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination-link:hover,
.pagination-previous:hover:not([disabled]),
.pagination-next:hover:not([disabled]) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== MODAL ===== */
.modal-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-card-head {
    background-color: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
}

.modal-card-foot {
    background-color: var(--gray-100);
    border-top: 2px solid var(--gray-200);
    gap: 0.5rem;
}

/* ===== NOTIFICATIONS & ALERTS ===== */
.notification {
    border-radius: var(--radius-lg);
    border-left: 4px solid;
}

.notification.is-primary {
    border-left-color: var(--primary);
    background-color: rgba(20, 184, 166, 0.1);
}

.notification.is-success {
    border-left-color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
}

.notification.is-warning {
    border-left-color: var(--warning);
    background-color: rgba(245, 158, 11, 0.1);
}

.notification.is-danger {
    border-left-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
}

.notification.is-info {
    border-left-color: var(--info);
    background-color: rgba(59, 130, 246, 0.1);
}

.notification.is-info.is-light {
    background-color: rgba(59, 130, 246, 0.08);
    border-left-color: var(--info);
}

/* ===== HERO SECTIONS ===== */
.hero.is-primary {
    background: var(--bg-dark);
}

.hero.is-medium .hero-body {
    padding: 3rem 1.5rem;
}

.hero .title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-weight: 400;
    opacity: 0.95;
}

/* ===== SECTIONS ===== */
.section {
    padding: 3rem 1.5rem;
}

/* ===== LEVEL (Flex containers) ===== */
.level {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.level-left,
.level-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.level-item {
    display: flex;
    align-items: center;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2C3E50 100%);
    color: white;
    margin-top: auto;
    padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-xl);
}

.footer .title {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-divider {
    background-color: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-xl) 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* ===== FLASH MESSAGES ===== */
.flash-message-section {
    padding: var(--spacing-md) var(--spacing-lg);
}

.flash-message-section .notification {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STAGING BANNER ===== */
.staging-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0 !important;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.staging-banner + .navbar {
    top: 45px;
}

.staging-banner ~ .main-content {
    margin-top: 45px;
}

/* ===== EMPTY STATES ===== */
.has-text-centered {
    text-align: center;
}

.has-text-grey-light {
    color: var(--gray-400) !important;
}

.has-text-grey {
    color: var(--gray-600) !important;
}

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

.has-text-weight-semibold {
    font-weight: 600 !important;
}

/* ===== BUTTONS GROUP ===== */
.buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.buttons.are-small .button {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* ===== FIELD GROUPS ===== */
.field {
    margin-bottom: 1rem;
}

.field:last-child {
    margin-bottom: 0;
}

.field.is-grouped {
    display: flex;
    gap: 0.75rem;
}

.field.is-grouped.is-grouped-right {
    justify-content: flex-end;
}

.field.has-addons {
    display: flex;
}

.field.has-addons .control:first-child .button,
.field.has-addons .control:first-child .input,
.field.has-addons .control:first-child .select select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.field.has-addons .control:last-child .button,
.field.has-addons .control:last-child .input,
.field.has-addons .control:last-child .select select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.field.has-addons .control:not(:first-child):not(:last-child) .button,
.field.has-addons .control:not(:first-child):not(:last-child) .input,
.field.has-addons .control:not(:first-child):not(:last-child) .select select {
    border-radius: 0;
}

.control {
    position: relative;
}

/* ===== SELECT WITH ICONS ===== */
.control.has-icons-left .icon.is-left {
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem;
    z-index: 4;
}

.control.has-icons-left .input,
.control.has-icons-left .select select {
    padding-left: 2.5rem;
}

.select.is-fullwidth,
.select.is-fullwidth select {
    width: 100%;
}

/* ===== RADIO BUTTONS ===== */
.radio {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    font-weight: 500;
}

.radio input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* ===== CONTENT AREAS ===== */
.content {
    line-height: 1.6;
}

.content .heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: var(--shadow-md);
}

.shadow-strong {
    box-shadow: var(--shadow-xl);
}

.rounded-soft {
    border-radius: var(--radius-md);
}

.rounded-strong {
    border-radius: var(--radius-xl);
}

/* Margin/Padding utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }

.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }

.is-size-7 { font-size: 0.875rem; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media screen and (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 3.25rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .navbar-brand .logo-text {
        font-size: 1.25rem;
    }
    
    .hero.is-medium .hero-body {
        padding: 2rem 1.5rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .footer .columns {
        flex-direction: column;
    }
    
    .footer .column {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Stack step items vertically on mobile */
    .steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .step-item::after {
        display: none;
    }
    
    .step-marker {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .step-details {
        align-items: flex-start;
    }
    
    /* Stack form fields on mobile */
    .columns {
        display: block;
    }
    
    .column {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Stack buttons on mobile */
    .field.is-grouped {
        flex-direction: column;
    }
    
    .field.is-grouped .control {
        width: 100%;
    }
    
    .field.is-grouped .button {
        width: 100%;
    }
    
    /* Stack level items on mobile */
    .level {
        flex-direction: column;
        align-items: stretch;
    }
    
    .level-left,
    .level-right {
        flex-direction: column;
        width: 100%;
    }
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, .footer, .button, .staging-banner {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background-color: white;
    }
    
    .box, .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .section {
        padding: 1rem 0;
    }
}

/* ===== FONT SIZE CONTROLLER (Accessibility) ===== */
.font-size-controller {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.font-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.font-btn:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.font-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.font-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.font-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.font-btn.font-decrease span {
    font-size: 0.75rem;
}

.font-btn.font-reset span {
    font-size: 0.875rem;
}

.font-btn.font-increase span {
    font-size: 1rem;
}

/* Feedback message */
.font-size-feedback {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.font-size-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== DARK MODE TOGGLE ===== */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.dark-mode-toggle:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle .toggle-icon {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme transition */
.theme-transition,
.theme-transition * {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* Theme feedback message */
.theme-feedback {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.theme-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== DARK MODE STYLES ===== */
.dark-mode {
    /* Dark mode color overrides - optimized for readability */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-dark: linear-gradient(135deg, #0a0d11 0%, #1a1f26 100%);
    
    --dark: #e8eaed;
    --gray-900: #f1f3f4;
    --gray-800: #e8eaed;
    --gray-700: #bdc1c6;
    --gray-600: #9aa0a6;
    --gray-500: #80868b;
    --gray-400: #5f6368;
    --gray-300: #3c4043;
    --gray-200: #2d3238;
    --gray-100: #232830;
    
    /* Brighter primary for dark mode */
    --primary: #5EEAD4;
    --primary-dark: #2DD4BF;
    --primary-light: #99F6E4;
}

.dark-mode body {
    background-color: var(--bg-secondary);
    color: #e8eaed;
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: #f1f3f4;
}

.dark-mode .navbar {
    background: #1a1f26;
    border-bottom-color: #3c4043;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .navbar-item {
    color: #bdc1c6;
}

.dark-mode .navbar-item:hover {
    background-color: #232830;
    color: var(--primary-light);
}

.dark-mode .navbar-dropdown {
    background-color: #232830;
    border-top-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode .navbar-brand .logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .box,
.dark-mode .card {
    background-color: #232830;
    border-color: #3c4043;
    color: #e8eaed;
}

.dark-mode .box:hover,
.dark-mode .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.dark-mode .title {
    color: #f1f3f4;
}

.dark-mode .subtitle {
    color: #bdc1c6;
}

.dark-mode .input,
.dark-mode .textarea,
.dark-mode .select select {
    background-color: #1a1f26;
    border-color: #3c4043;
    color: #e8eaed;
}

.dark-mode .input:focus,
.dark-mode .textarea:focus,
.dark-mode .select select:focus {
    border-color: var(--primary);
    background-color: #232830;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}

.dark-mode .input::placeholder,
.dark-mode .textarea::placeholder {
    color: #80868b;
}

.dark-mode .label {
    color: #bdc1c6;
}

.dark-mode .help {
    color: #9aa0a6;
}

.dark-mode .button.is-primary {
    background-color: var(--primary);
    color: #0f1419;
    box-shadow: 0 4px 12px rgba(94, 234, 212, 0.3);
}

.dark-mode .button.is-primary:hover {
    background-color: var(--primary-light);
    box-shadow: 0 6px 16px rgba(94, 234, 212, 0.4);
}

.dark-mode .button.is-light {
    background-color: #232830;
    color: #e8eaed;
    border-color: #3c4043;
}

.dark-mode .button.is-light:hover {
    background-color: #1a1f26;
    border-color: var(--primary);
    color: var(--primary-light);
}

.dark-mode .button.is-danger {
    background-color: #f87171;
    color: #0f1419;
}

.dark-mode .button.is-danger:hover {
    background-color: #fca5a5;
}

.dark-mode .notification {
    background-color: #232830;
    color: #e8eaed;
    border-left-width: 4px;
}

.dark-mode .notification.is-info {
    background-color: rgba(96, 165, 250, 0.15);
    border-left-color: #60a5fa;
    color: #bfdbfe;
}

.dark-mode .notification.is-info.is-light {
    background-color: rgba(96, 165, 250, 0.1);
}

.dark-mode .notification.is-success {
    background-color: rgba(94, 234, 212, 0.15);
    border-left-color: var(--primary);
    color: #99f6e4;
}

.dark-mode .notification.is-warning {
    background-color: rgba(251, 191, 36, 0.15);
    border-left-color: #fbbf24;
    color: #fde68a;
}

.dark-mode .notification.is-danger {
    background-color: rgba(248, 113, 113, 0.15);
    border-left-color: #f87171;
    color: #fca5a5;
}

.dark-mode .table {
    background-color: #232830;
    color: #e8eaed;
}

.dark-mode .table thead th {
    background-color: #1a1f26;
    color: #bdc1c6;
    border-bottom-color: #3c4043;
}

.dark-mode .table.is-hoverable tbody tr:hover {
    background-color: #1a1f26;
}

.dark-mode .table td,
.dark-mode .table th {
    border-color: #3c4043;
}

.dark-mode .modal-card {
    background-color: #232830;
}

.dark-mode .modal-card-head,
.dark-mode .modal-card-foot {
    background-color: #1a1f26;
    border-color: #3c4043;
}

.dark-mode .modal-card-title {
    color: #f1f3f4;
}

.dark-mode .hero.is-primary {
    background: linear-gradient(135deg, #0a0d11 0%, #1a1f26 100%);
}

.dark-mode .hero .title {
    color: #f1f3f4;
}

.dark-mode .hero .subtitle {
    color: #bdc1c6;
}

.dark-mode .footer {
    background: linear-gradient(135deg, #0a0d11 0%, #1a1f26 100%);
    border-top: 1px solid #3c4043;
}

.dark-mode .footer-links a {
    color: #bdc1c6;
}

.dark-mode .footer-links a:hover {
    color: var(--primary-light);
}

.dark-mode .reference-entry {
    background-color: #1a1f26;
    border-color: #3c4043;
}

.dark-mode .reference-entry:hover {
    background-color: #232830;
    border-color: var(--primary);
}

.dark-mode .step-marker {
    background-color: #1a1f26;
    border-color: #3c4043;
    color: #80868b;
}

.dark-mode .step-item.is-active .step-marker {
    background-color: var(--primary);
    color: #0f1419;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.2);
}

.dark-mode .step-item.is-success .step-marker {
    background-color: #10b981;
    color: #0f1419;
    border-color: #10b981;
}

.dark-mode .step-title {
    color: #9aa0a6;
}

.dark-mode .step-item.is-active .step-title {
    color: var(--primary-light);
}

.dark-mode .message-body {
    background-color: #1a1f26;
    border-color: #3c4043;
    color: #e8eaed;
}

.dark-mode .message.is-info .message-body {
    background-color: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
}

.dark-mode .message.is-success .message-body {
    background-color: rgba(94, 234, 212, 0.1);
    border-color: var(--primary);
}

.dark-mode .tag {
    background-color: #3c4043;
    color: #bdc1c6;
}

.dark-mode .tag.is-success {
    background-color: #10b981;
    color: #0f1419;
}

.dark-mode .tag.is-success.is-light {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.dark-mode .tag.is-warning {
    background-color: #fbbf24;
    color: #0f1419;
}

.dark-mode .tag.is-warning.is-light {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.dark-mode .breadcrumb a {
    color: #bdc1c6;
}

.dark-mode .breadcrumb a:hover {
    color: var(--primary-light);
}

.dark-mode .breadcrumb li.is-active a {
    color: #9aa0a6;
}

.dark-mode .pagination-link,
.dark-mode .pagination-previous,
.dark-mode .pagination-next {
    background-color: #232830;
    border-color: #3c4043;
    color: #bdc1c6;
}

.dark-mode .pagination-link:hover,
.dark-mode .pagination-previous:hover,
.dark-mode .pagination-next:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.dark-mode .pagination-link.is-current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #0f1419;
}

/* Dark mode toggle in dark mode */
.dark-mode .dark-mode-toggle {
    background: #232830;
    border-color: #3c4043;
    color: #fbbf24;
}

.dark-mode .dark-mode-toggle:hover {
    background: #1a1f26;
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Font size controller in dark mode */
.dark-mode .font-size-controller {
    background: rgba(35, 40, 48, 0.95);
}

.dark-mode .font-btn {
    background: #1a1f26;
    border-color: #3c4043;
    color: #bdc1c6;
}

.dark-mode .font-btn:hover:not(:disabled) {
    background: #232830;
    border-color: var(--primary);
    color: var(--primary-light);
}

.dark-mode .font-btn.active {
    background: rgba(94, 234, 212, 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Content areas in dark mode */
.dark-mode .content {
    color: #e8eaed;
}

.dark-mode .content .heading {
    color: #9aa0a6;
}

.dark-mode .content a {
    color: var(--primary-light);
}

.dark-mode .content a:hover {
    color: var(--primary);
}

/* Has-text utilities in dark mode */
.dark-mode .has-text-grey {
    color: #9aa0a6 !important;
}

.dark-mode .has-text-grey-light {
    color: #80868b !important;
}

.dark-mode .has-text-primary {
    color: var(--primary-light) !important;
}

.dark-mode .has-text-weight-semibold {
    font-weight: 600 !important;
}

/* Stat cards in dark mode */
.dark-mode .stat-card {
    background-color: #232830;
    border: 1px solid #3c4043;
}

.dark-mode .stat-value {
    color: var(--primary-light);
}

.dark-mode .stat-label {
    color: #9aa0a6;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .font-size-controller {
        gap: 0.125rem;
    }
    
    .font-btn {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
}