/* ========================================
   REMKOR ERP - Dark "Steel" Theme
   High-tech, modern interface with steel/metallic feel
   ======================================== */

:root {
    /* Dark Steel Color Palette - Darker & Sharper */
    --steel-darkest: #0a0a0a;
    --steel-darker: #121212;
    --steel-dark: #1a1a1a;
    --steel-medium: #222222;
    --steel-light: #2a2a2a;
    --steel-lighter: #333333;
    
    /* Accent Colors - Orange Primary */
    --steel-orange: #ff6b35;
    --steel-orange-light: #ff8c5f;
    --steel-orange-dark: #e55a2b;
    --steel-orange-glow: rgba(255, 107, 53, 0.15);
    --steel-green: #10b981;
    --steel-red: #ef4444;
    --steel-yellow: #eab308;
    --steel-purple: #a855f7;
    
    /* Text Colors - High Contrast */
    --text-primary: #f0f0f0;
    --text-secondary: #b8b8b8;
    --text-tertiary: #888888;
    --text-white: #ffffff;
    
    /* UI Elements */
    --border-color: #374151;
    --border-light: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-steel: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --surface-elevated: linear-gradient(180deg, rgba(28, 28, 28, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    --surface-muted: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-strong: rgba(255, 107, 53, 0.18);
    --focus-ring: rgba(255, 107, 53, 0.2);
    --radius-xl: 1rem;
    --ui-button-height: 2.75rem;
    --ui-button-pad-x: 1rem;
    --ui-button-pad-y: 0.625rem;
}

/* Base Styles */
.ui-scroll-surface {
    scroll-behavior: smooth;
}

.ui-detail-sidebar {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
    .ui-scroll-surface,
    .ui-detail-sidebar {
        scroll-behavior: auto;
    }
}

body {
    background:
        radial-gradient(circle at top, rgba(255, 107, 53, 0.06), transparent 28%),
        linear-gradient(180deg, #0b0b0b 0%, #101010 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.app-shell {
    min-height: 100%;
}

.app-main {
    min-height: calc(100vh - 4rem);
}

.ui-shell {
    margin: 0;
    max-width: none;
    width: 100%;
}

.ui-currency {
    align-items: baseline;
    display: inline-flex;
    gap: 0.35ch;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    white-space: nowrap !important;
}

.ui-currency-symbol,
.ui-currency-value {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap !important;
}

.ui-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ui-page {
    margin: 0;
    max-width: none;
    width: 100%;
}

.ui-page-fluid {
    width: 100%;
    max-width: none;
}

.ui-page-narrow {
    margin: 0;
    max-width: none;
    width: 100%;
}

.ui-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ui-page-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ui-page-title {
    color: var(--text-white) !important;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.15;
}

.ui-page-subtitle {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    max-width: 48rem;
}

.ui-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .ui-detail-sidebar {
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
        padding-right: 0.25rem;
        position: sticky;
        top: 5.5rem;
    }
}

.ui-page-actions > * {
    flex: 0 0 auto;
    max-width: 100%;
}

.ui-page-actions form,
.ui-modal-footer form,
form.inline {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    width: auto;
}

.ui-page-actions form > button,
.ui-modal-footer form > button,
form.inline > button {
    width: auto;
}

@media (max-width: 640px) {
    .ui-page-actions {
        align-items: stretch;
    }

    .ui-page-actions > *,
    .ui-page-actions form,
    .ui-page-actions form > button {
        width: 100%;
    }
}

.ui-report-page {
    --report-panel-pad-x: clamp(1rem, 2vw, 1.5rem);
    --report-panel-pad-y: clamp(1rem, 1.8vw, 1.25rem);
    --report-stat-pad-x: clamp(1rem, 2.4vw, 1.5rem);
    --report-stat-pad-y: clamp(1rem, 2vw, 1.25rem);
}

.ui-report-panel-header,
.ui-report-panel-body {
    padding-left: var(--report-panel-pad-x);
    padding-right: var(--report-panel-pad-x);
}

.ui-report-panel-header {
    padding-bottom: calc(var(--report-panel-pad-y) - 0.125rem);
    padding-top: var(--report-panel-pad-y);
}

.ui-report-panel-body {
    padding-bottom: var(--report-panel-pad-y);
    padding-top: var(--report-panel-pad-y);
}

.ui-report-panel-header > :first-child,
.ui-report-panel-body > :first-child {
    margin-top: 0;
}

.ui-report-panel-header > :last-child,
.ui-report-panel-body > :last-child {
    margin-bottom: 0;
}

.ui-report-stat {
    padding: var(--report-stat-pad-y) var(--report-stat-pad-x);
}

.ui-report-stat > :first-child {
    margin-top: 0;
}

.ui-report-stat > :last-child {
    margin-bottom: 0;
}

.ui-report-stat > dt,
.ui-report-stat > p:first-child {
    margin-left: auto;
    margin-right: auto;
    max-width: 14ch;
    text-wrap: balance;
    line-height: 1.3;
}

.ui-report-stat > dd,
.ui-report-stat > p,
.ui-report-stat > span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ui-report-stat > dd,
.ui-report-stat > p + p {
    display: block;
    line-height: 1.1;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-report-list-item,
.ui-report-empty {
    padding-left: var(--report-panel-pad-x);
    padding-right: var(--report-panel-pad-x);
}

.ui-report-list-item {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.ui-report-empty {
    align-items: center;
    display: flex;
    min-height: 5.25rem;
    padding-bottom: var(--report-panel-pad-y);
    padding-top: var(--report-panel-pad-y);
}

.ui-report-chip {
    align-items: center;
    border-radius: 0.9rem !important;
    display: inline-flex;
    justify-content: center;
    line-height: 1.35;
    max-width: 100%;
    min-height: 2.5rem;
    overflow-wrap: anywhere;
    padding: 0.625rem 1rem;
    text-align: center;
    white-space: normal;
}

.ui-report-chip.ui-report-chip-compact {
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
}

.ui-report-badge {
    align-items: center;
    border-radius: 0.75rem !important;
    display: inline-flex;
    justify-content: center;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 0.35rem 0.7rem;
    text-align: center;
    white-space: normal;
}

.ui-report-panel-table th:first-child,
.ui-report-panel-table td:first-child {
    padding-left: var(--report-panel-pad-x) !important;
}

.ui-report-panel-table th:last-child,
.ui-report-panel-table td:last-child {
    padding-right: var(--report-panel-pad-x) !important;
}

@media (max-width: 640px) {
    .ui-report-chip {
        font-size: 0.8125rem;
        width: 100%;
    }

    .ui-report-badge {
        font-size: 0.75rem;
    }

    .ui-report-stat > dt,
    .ui-report-stat > p:first-child {
        max-width: 12ch;
    }
}

.ui-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--surface-border);
    border-radius: 0.875rem;
    background: var(--surface-muted);
}

.ui-toolbar > input[type="search"] {
    min-width: min(100%, 18rem);
}

.ui-card {
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 0.875rem;
    background: var(--surface-elevated);
    box-shadow: var(--shadow-md);
}

.ui-card-body {
    padding: 1.5rem;
}

.ui-note {
    border: 1px solid var(--surface-border);
    border-radius: 0.875rem;
    background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
    color: var(--text-secondary) !important;
    font-size: 0.9375rem;
    line-height: 1.55;
    padding: 0.9rem 1.125rem;
}

.ui-note > :first-child {
    margin-top: 0;
}

.ui-note > :last-child {
    margin-bottom: 0;
}

.ui-note-inline {
    margin-top: 1rem;
}

.ui-section-title {
    margin-bottom: 1rem;
    color: var(--text-white) !important;
    font-size: 1rem;
    font-weight: 600;
}

.ui-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary) !important;
    font-size: 0.875rem;
}

.ui-breadcrumb a {
    color: var(--text-secondary) !important;
}

.ui-breadcrumb a:hover {
    color: var(--text-white) !important;
}

.ui-form-grid {
    display: grid;
    gap: 1rem;
}

.ui-alert-error {
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 0.75rem;
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca !important;
    padding: 1rem 1.125rem;
}

.ui-modal {
    width: min(100%, 42rem);
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
}

.ui-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.ui-modal-panel {
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    background: var(--surface-elevated);
    box-shadow: var(--shadow-xl);
}

.ui-modal-header,
.ui-modal-body,
.ui-modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.ui-modal-header {
    padding-bottom: 1rem;
    padding-top: 1.25rem;
    border-bottom: 1px solid var(--surface-border);
}

.ui-modal-body {
    padding-bottom: 1.25rem;
    padding-top: 1.25rem;
}

.ui-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-border);
    background: var(--surface-muted);
}

dialog[id^="modal_"] {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
}

dialog[id^="modal_"]::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

dialog[id^="modal_"] > div,
dialog[id^="modal_"] > form > div {
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    background: var(--surface-elevated) !important;
    box-shadow: var(--shadow-xl);
}

dialog[id^="modal_"] .bg-gray-50,
dialog[id^="modal_"] .rounded-b-lg.bg-gray-50 {
    background: var(--surface-muted) !important;
}

@media (min-width: 640px) {
    .ui-page-header {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
}

.topbar-steel {
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(18px);
}

main :is(div, section, article, aside, form, label)[class*="bg-white"][class*="rounded"],
main :is(div, section, article, aside, form, label)[class*="bg-white"][class*="shadow"],
main :is(div, section, article, aside, form, label)[class*="bg-gray-50"][class*="border"][class*="rounded"] {
    background: var(--surface-elevated) !important;
    border-color: var(--surface-border) !important;
    box-shadow: var(--shadow-md) !important;
}

main a[class*="min-h-"][class*="rounded-xl"] {
    background: var(--surface-elevated) !important;
    border-color: var(--surface-border) !important;
    box-shadow: var(--shadow-sm) !important;
}

main a[class*="min-h-"][class*="rounded-xl"]:hover {
    background: linear-gradient(180deg, rgba(32, 32, 32, 0.98) 0%, rgba(24, 24, 24, 0.98) 100%) !important;
    border-color: var(--surface-border-strong) !important;
}

main .border-gray-200,
main .border-gray-300,
main .divide-gray-200 > :not([hidden]) ~ :not([hidden]),
main .divide-gray-300 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--surface-border) !important;
}

main .ring-gray-200,
main .ring-gray-300 {
    --tw-ring-color: rgba(255, 255, 255, 0.08) !important;
}

main thead.bg-gray-50,
main tbody.bg-white,
main tr.hover\:bg-gray-50:hover,
main a.hover\:bg-gray-50:hover,
main .hover\:bg-gray-50:hover {
    background: var(--surface-muted) !important;
}

main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
main select,
main textarea {
    background: var(--steel-medium) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 0.625rem;
    color: var(--text-primary) !important;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    box-shadow: none !important;
}

main textarea {
    min-height: 7rem;
}

main input::placeholder,
main textarea::placeholder {
    color: var(--text-tertiary) !important;
}

main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
main select:focus,
main textarea:focus {
    border-color: var(--steel-orange) !important;
    box-shadow: 0 0 0 3px var(--focus-ring) !important;
    outline: none !important;
}

main a[class*="rounded-md"][class*="bg-white"],
main a[class*="rounded-xl"][class*="bg-white"],
main button[class*="rounded-md"][class*="bg-white"],
main button[class*="rounded-xl"][class*="bg-white"] {
    background: linear-gradient(180deg, rgba(44, 44, 44, 0.98) 0%, rgba(29, 29, 29, 0.98) 100%) !important;
    border: 1px solid var(--surface-border) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-primary) !important;
}

main a[class*="rounded-md"][class*="bg-white"]:hover,
main a[class*="rounded-xl"][class*="bg-white"]:hover,
main button[class*="rounded-md"][class*="bg-white"]:hover,
main button[class*="rounded-xl"][class*="bg-white"]:hover {
    background: linear-gradient(180deg, rgba(54, 54, 54, 0.98) 0%, rgba(35, 35, 35, 0.98) 100%) !important;
    border-color: var(--surface-border-strong) !important;
}

/* ===== UNIVERSAL TEXT COLOR FORCE =====*/
* {
    color: inherit;
}

/* All text elements - force light colors */
p, span, div, section, article, header, footer, label, td, th {
    color: var(--text-primary) !important;
}

/* Specific text color classes - force overrides */
.text-gray-900, .text-slate-900, .text-gray-900\/90 {
    color: var(--text-white) !important;
}

.text-gray-800, .text-slate-800, .text-gray-800\/90 {
    color: var(--text-primary) !important;
}

.text-gray-700, .text-slate-700 {
    color: var(--text-primary) !important;
}

.text-gray-600, .text-slate-600, .text-gray-500, .text-slate-500 {
    color: var(--text-secondary) !important;
}

.text-gray-400, .text-slate-400 {
    color: var(--text-tertiary) !important;
}

/* Dark backgrounds with light text */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white) !important;
    font-weight: 700 !important;
}

/* ===== COOL BUTTON ANIMATIONS ===== */
@keyframes button-glow-pulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.15);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 107, 53, 0.25), inset 0 0 8px rgba(255, 107, 53, 0.1);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.15);
    }
}

@keyframes button-shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes button-lift {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.1);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

@keyframes ripple-expand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Remove all focus outlines for clean minimal UI */
button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
svg:focus,
svg:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Base button styling */
button, .btn, a.inline-flex.items-center, [role="button"], input[type="submit"], input[type="reset"], input[type="button"] {
    align-items: center;
    position: relative;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
    min-height: var(--ui-button-height);
    padding: var(--ui-button-pad-y) var(--ui-button-pad-x);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

a.inline-flex.items-center,
[role="button"] {
    display: inline-flex;
}

button svg,
a.inline-flex.items-center svg,
input[type="submit"] svg,
input[type="reset"] svg,
input[type="button"] svg {
    flex-shrink: 0;
}

.ui-page-actions :is(a.inline-flex.items-center, button, input[type="submit"], input[type="reset"], input[type="button"]) {
    min-width: 6rem;
}

/* Primary orange buttons */
button.bg-brand-600,
.btn-primary,
.bg-brand-600,
a.bg-brand-600,
input[type="submit"] {
    background: linear-gradient(135deg, var(--steel-orange) 0%, var(--steel-orange-light) 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
    font-weight: 600;
}

button.bg-brand-600:hover,
.btn-primary:hover,
.bg-brand-600:hover,
a.bg-brand-600:hover,
input[type="submit"]:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

button.bg-brand-600:active,
.btn-primary:active,
.bg-brand-600:active,
a.bg-brand-600:active,
input[type="submit"]:active {
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

/* Ensure SVG icons inside primary buttons are white */
button.bg-brand-600 svg,
.btn-primary svg,
.bg-brand-600 svg,
a.bg-brand-600 svg,
input[type="submit"] svg {
    color: white !important;
}

/* Ensure SVG icons inside elements with text-white class are white */
.text-white svg {
    color: white !important;
}

/* Gray/secondary buttons */
button.bg-gray-600,
.btn-secondary,
.bg-gray-600,
a.bg-gray-600,
button.bg-gray-700,
.bg-gray-700,
input[type="reset"],
input[type="button"] {
    background: linear-gradient(135deg, #3a4450 0%, #2a3440 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

button.bg-gray-600:hover,
.btn-secondary:hover,
.bg-gray-600:hover,
a.bg-gray-600:hover,
button.bg-gray-700:hover,
.bg-gray-700:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
    background: linear-gradient(135deg, #444d5a 0%, #343d4a 100%);
}

button.bg-gray-600:active,
.btn-secondary:active,
.bg-gray-600:active,
a.bg-gray-600:active,
button.bg-gray-700:active,
.bg-gray-700:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Inline flex buttons (often used for action buttons) */
a.inline-flex.items-center,
button.inline-flex.items-center {
    color: white !important;
    transition: all 0.25s ease;
}

a.inline-flex.items-center:hover,
button.inline-flex.items-center:hover {
    opacity: 0.9;
}

a.inline-flex.items-center:active,
button.inline-flex.items-center:active {
    opacity: 0.8;
}

/* Glassmorphism effect */
.glass-effect {
    background: rgba(30, 37, 48, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Styles - Darker & Sharper */
.dark-card {
    background: var(--steel-dark);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-card:hover {
    border-color: var(--steel-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--steel-orange-glow);
    transform: translateY(-4px);
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--steel-medium) 0%, var(--steel-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--steel-orange-glow) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--steel-orange-glow);
    border-color: var(--steel-orange);
}

.stat-card.orange { border-left: 4px solid var(--steel-orange); }
.stat-card.blue { border-left: 4px solid #4a90e2; }
.stat-card.green { border-left: 4px solid var(--steel-green); }
.stat-card.purple { border-left: 4px solid var(--steel-purple); }

/* Chart Container */
.chart-container {
    background: var(--steel-medium);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 300px;
}

/* Navigation Styles - Futuristic Animations */
.nav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--steel-orange) 0%, var(--steel-orange-light) 100%);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--steel-orange-glow);
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--steel-orange-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-item:hover {
    transform: translateX(4px);
    background: rgba(255, 107, 53, 0.02);
}

.nav-item:hover::before,
.nav-item.active::before {
    height: 100%;
}

.nav-item:hover::after {
    opacity: 1;
}

.nav-item:active {
    transform: translateX(2px) scale(0.98);
}

/* Buttons */
.btn-steel {
    background: var(--gradient-steel);
    color: var(--text-white);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-steel:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--steel-orange);
}

.btn-primary {
    background: linear-gradient(135deg, var(--steel-orange) 0%, var(--steel-orange-dark) 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--steel-orange-light) 0%, var(--steel-orange) 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

.btn-secondary {
    background: var(--steel-medium);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--steel-light);
    border-color: var(--steel-orange);
}

/* Status Badges */
.badge {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    line-height: 1;
    min-height: 1.75rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

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

::-webkit-scrollbar-track {
    background: var(--steel-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--steel-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steel-lighter);
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--steel-orange-glow);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.25);
    }
}

@keyframes slide-in-glow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Icon Animations */
@keyframes icon-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes icon-spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(-2px);
    }
}

@keyframes icon-glow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(255, 107, 53, 0.15));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.2));
    }
}

/* Animated Icon Classes - Support both SVG and IMG */
.nav-item svg,
.nav-item img,
.sidebar-steel svg,
.sidebar-steel img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover svg,
.nav-item:hover img {
    filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.2));
}

.nav-item.active svg,
.nav-item.active img {
    animation: icon-glow 2s ease-in-out infinite;
}

/* Icon animations disabled - using hover glow effect from nav-item instead */
.icon-dashboard:hover svg,
.icon-dashboard:hover img {
    /* animations removed */
}

.icon-sales:hover svg,
.icon-sales:hover img {
    /* animations removed */
}

.icon-purchasing:hover svg,
.icon-purchasing:hover img {
    /* animations removed */
}

.icon-inventory:hover svg,
.icon-inventory:hover img {
    /* animations removed */
}

.icon-reports:hover svg,
.icon-reports:hover img {
    /* animations removed */
}

/* Icon image styling */
.nav-item img,
.sidebar-steel img {
    display: inline-block;
    object-fit: contain;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Table Styles - Dark Grey Focus */
.dark-table,
table {
    background: var(--steel-dark);
    border: none;
    border-radius: 0.5rem;
}

.dark-table thead,
table thead {
    background: var(--steel-darker);
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}

.dark-table th,
table th {
    color: var(--text-secondary) !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
}

.dark-table td,
table td {
    color: var(--text-primary) !important;
    padding: 1rem;
    border: none;
}

.dark-table tbody tr,
table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    background: var(--steel-dark);
}

.dark-table tbody tr:last-child,
table tbody tr:last-child {
    border-bottom: none;
}

.dark-table tbody tr:hover,
table tbody tr:hover {
    background: var(--steel-medium) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.1);
    border-bottom-color: rgba(255, 107, 53, 0.1);
}

/* Disable hover effects on document form line-item rows */
.dark-table tbody tr.line-item-row:hover,
table tbody tr.line-item-row:hover {
    background: inherit !important;
    box-shadow: none;
    border-bottom-color: inherit;
}

/* Input Styles */
.dark-input {
    background: var(--steel-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.dark-input:focus {
    outline: none;
    border-color: var(--steel-orange);
    box-shadow: 0 0 0 2px var(--steel-orange-glow), 0 0 12px var(--steel-orange-glow);
}

.dark-input::placeholder {
    color: var(--text-tertiary);
}

/* Loading Indicator - Orange */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--steel-orange);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar - Orange Glow */
.progress-bar {
    background: var(--steel-dark);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--steel-orange) 0%, var(--steel-orange-light) 100%);
    height: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px var(--steel-orange-glow);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--steel-darker);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.tooltip:hover::after {
    opacity: 1;
}

/* Sidebar Enhancement - Darker & Sleeker */
.sidebar-steel {
    background: linear-gradient(180deg, var(--steel-darkest) 0%, var(--steel-darker) 100%);
    border-right: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

/* ===== NAVBAR STYLING - Horizontal Navigation ===== */
.navbar-steel {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Navbar Links */
.navbar-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-link.active {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.08);
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
}

/* Dropdown Menu */
.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-link.active {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.08);
}

/* Mobile Menu Links */
.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.mobile-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Notification Dot */
.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--steel-red);
    border-radius: 50%;
    border: 2px solid var(--steel-darker);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Grid Layout Enhancement */
.dark-grid {
    display: grid;
    gap: 1.5rem;
}

/* Responsive Text */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* Accent Line - Orange */
.accent-line {
    height: 2px;
    background: linear-gradient(90deg, var(--steel-orange) 0%, var(--steel-orange-light) 100%);
    border-radius: 9999px;
    box-shadow: 0 0 10px var(--steel-orange-glow);
}

/* Steel Glow Effect - Orange */
.steel-glow {
    box-shadow: 0 0 20px var(--steel-orange-glow), 0 0 40px rgba(255, 107, 53, 0.15);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   FUTURISTIC ENHANCEMENTS - COOL EFFECTS
   ========================================== */

/* Glowing Orange Border Effect */
.glow-border {
    border: 1px solid var(--steel-orange);
    box-shadow: 0 0 10px var(--steel-orange-glow),
                inset 0 0 10px var(--steel-orange-glow);
    animation: border-pulse 3s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--steel-orange-glow),
                    inset 0 0 5px var(--steel-orange-glow);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.25),
                    inset 0 0 8px rgba(255, 107, 53, 0.15);
    }
}

/* Shimmer Effect on Hover */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.shimmer:hover::after {
    left: 100%;
}

/* Scan Line Effect */
@keyframes scan-line {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.scan-effect {
    position: relative;
    overflow: hidden;
}

.scan-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--steel-orange) 50%, 
        transparent 100%);
    opacity: 0;
    animation: scan-line 3s ease-in-out infinite;
}

.scan-effect:hover::before {
    opacity: 0.5;
}

/* Neon Glow Text */
.neon-text {
    color: var(--steel-orange);
    text-shadow: 
        0 0 5px var(--steel-orange-glow),
        0 0 10px var(--steel-orange-glow),
        0 0 20px var(--steel-orange-glow),
        0 0 40px rgba(255, 107, 53, 0.2);
}

/* Pulse Effect */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

/* Slide In Animation for Sidebar Items */
.nav-item {
    animation: slide-in-glow 0.3s ease-out;
}

.nav-item:nth-child(1) { animation-delay: 0s; }
.nav-item:nth-child(2) { animation-delay: 0.05s; }
.nav-item:nth-child(3) { animation-delay: 0.1s; }
.nav-item:nth-child(4) { animation-delay: 0.15s; }
.nav-item:nth-child(5) { animation-delay: 0.2s; }
.nav-item:nth-child(6) { animation-delay: 0.25s; }
.nav-item:nth-child(7) { animation-delay: 0.3s; }
.nav-item:nth-child(8) { animation-delay: 0.35s; }

/* Click Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.ripple-effect:active::before {
    width: 300px;
    height: 300px;
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(135deg, 
        var(--steel-dark) 0%, 
        var(--steel-medium) 25%,
        var(--steel-dark) 50%,
        var(--steel-medium) 75%,
        var(--steel-dark) 100%);
    background-size: 400% 400%;
    animation: holographic-shift 8s ease infinite;
}

@keyframes holographic-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Focus Glow Effect */
input:focus, select:focus, textarea:focus {
    animation: focus-glow 1s ease-in-out;
}

@keyframes focus-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

/* Sharp Edges Enhancement */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* High Contrast Text */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Override Tailwind text colors for dark theme */
.text-gray-900 {
    color: var(--text-white) !important;
}

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

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

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

.text-gray-500 {
    color: var(--text-secondary) !important;
}

.text-gray-400 {
    color: var(--text-tertiary) !important;
}

/* Override Tailwind background colors for dark theme */
.bg-white,
.bg-white\/opacity,
table.bg-white {
    background-color: var(--steel-dark) !important;
}

.bg-white * {
    color: var(--text-primary) !important;
}

.bg-gray-50,
.bg-gray-50\/opacity {
    background-color: var(--steel-darker) !important;
}

.bg-gray-100,
.bg-gray-100\/opacity {
    background-color: var(--steel-medium) !important;
}

.bg-gray-200 {
    background-color: var(--steel-light) !important;
}

/* Ensure all elements inside dark backgrounds have light text */
.bg-white, .bg-gray-50, .bg-gray-100 {
    color: var(--text-primary) !important;
}

.bg-white a, .bg-gray-50 a, .bg-gray-100 a {
    color: var(--steel-orange) !important;
}

/* Override hover states */
.hover\:bg-gray-50:hover {
    background-color: var(--steel-medium) !important;
}

.hover\:bg-white:hover {
    background-color: var(--steel-medium) !important;
}

/* Force text colors in all scenarios */
.bg-white p, .bg-white span, .bg-white div,
.bg-gray-50 p, .bg-gray-50 span, .bg-gray-50 div,
.bg-gray-100 p, .bg-gray-100 span, .bg-gray-100 div {
    color: var(--text-primary) !important;
}

/* Table specific text colors */
table p, table span, table div {
    color: var(--text-primary) !important;
}

tbody td, thead th {
    color: var(--text-primary) !important;
}

tbody tr td {
    color: var(--text-primary) !important;
    background: transparent !important;
}

/* Override divide colors */
.divide-gray-200 > * + * {
    border-color: var(--border-color) !important;
}

.divide-gray-300 > * + * {
    border-color: var(--border-light) !important;
}

/* Override border colors */
.border-gray-200 {
    border-color: var(--border-color) !important;
}

.border-gray-300 {
    border-color: var(--border-color) !important;
}

.border-gray-400 {
    border-color: var(--border-light) !important;
}

/* Status badge overrides for dark theme */
.bg-blue-100 {
    background-color: rgba(74, 144, 226, 0.2) !important;
}

.text-blue-800 {
    color: #6ba3e8 !important;
}

.bg-green-100 {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

.text-green-800 {
    color: #10b981 !important;
}

.bg-gray-100 {
    background-color: rgba(128, 128, 128, 0.2) !important;
}

.text-gray-800 {
    color: #b8b8b8 !important;
}

.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

.text-red-800 {
    color: #ef4444 !important;
}

.bg-yellow-100 {
    background-color: rgba(234, 179, 8, 0.2) !important;
}

.text-yellow-800 {
    color: #eab308 !important;
}

/* -50 background overrides for dark theme (message boxes, info panels) */
.bg-yellow-50 {
    background-color: rgba(234, 179, 8, 0.12) !important;
    border: 1px solid rgba(234, 179, 8, 0.25) !important;
}

.bg-green-50 {
    background-color: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.bg-blue-50 {
    background-color: rgba(74, 144, 226, 0.12) !important;
    border: 1px solid rgba(74, 144, 226, 0.25) !important;
}

/* Amber badge overrides for dark theme */
.bg-amber-100 {
    background-color: rgba(245, 158, 11, 0.2) !important;
}

.text-amber-800 {
    color: #f59e0b !important;
}

/* Purple badge overrides for dark theme */
.bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.2) !important;
}

.text-purple-800 {
    color: #c4b5fd !important;
}

/* -900 text color overrides for dark theme (used in badges and info boxes) */
.text-yellow-900 {
    color: #fbbf24 !important;
}

.text-blue-900 {
    color: #93c5fd !important;
}

.text-green-900 {
    color: #34d399 !important;
}

.text-red-900 {
    color: #f87171 !important;
}

/* -700 text color overrides for dark theme (used in validation messages) */
.text-yellow-700 {
    color: #fbbf24 !important;
}

.text-green-700 {
    color: #34d399 !important;
}

.text-red-700 {
    color: #f87171 !important;
}

/* Hover state override for slate-50 in dark theme */
.hover\:bg-slate-50:hover {
    background-color: var(--steel-medium) !important;
}

/* Ensure green/red action buttons have white text */
.bg-green-600 {
    color: white !important;
}

.bg-red-600 {
    color: white !important;
}

/* Ring overrides for dark theme badge borders */
.ring-blue-900\/10 {
    --tw-ring-color: rgba(74, 144, 226, 0.25) !important;
}

/* Hover state overrides for colored backgrounds in dark theme */
.hover\:bg-red-100:hover {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

.hover\:bg-green-100:hover {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

.hover\:bg-blue-100:hover {
    background-color: rgba(74, 144, 226, 0.2) !important;
}

.hover\:bg-yellow-100:hover {
    background-color: rgba(234, 179, 8, 0.2) !important;
}

/* Progress bar track override for dark theme */
.bg-gray-300 {
    background-color: var(--steel-lighter) !important;
}

/* Colored border overrides for dark theme info/warning/error panels */
.border-green-200 {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.border-blue-200 {
    border-color: rgba(74, 144, 226, 0.3) !important;
}

.border-yellow-200 {
    border-color: rgba(234, 179, 8, 0.3) !important;
}

.border-red-200 {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Colored text overrides for status/data values in dark theme */
.text-green-600 {
    color: #34d399 !important;
}

.text-orange-600 {
    color: #fb923c !important;
}

/* ===== ENHANCED INPUT FIELD STYLES ===== */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="url"],
select,
textarea {
    background-color: var(--steel-light) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.625rem 0.875rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
}

/* Input focus state - premium orange glow */
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--steel-orange) !important;
    box-shadow: 0 0 0 3px var(--steel-orange-glow), 0 0 20px var(--steel-orange-glow) !important;
}

/* Input hover state */
input:hover,
select:hover,
textarea:hover {
    border-color: rgba(255, 107, 53, 0.35) !important;
    background-color: #2a3a4a !important;
}

/* Input placeholder */
input::placeholder,
textarea::placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: var(--text-tertiary) !important;
}

/* Checkbox and radio button styling */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--steel-orange) !important;
    cursor: pointer !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    border: 1px solid var(--border-color) !important;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 2px solid var(--steel-orange) !important;
    outline-offset: 2px !important;
}

/* Select dropdown styling - Premium arrows */
select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem 1rem !important;
    padding-right: 2.5rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

select::-ms-expand {
    display: none;
}

/* Keep one stable arrow asset to avoid duplicated/broken hover rendering */
select:hover {
    background-color: #253240 !important;
}

select:focus {
    background-color: #253240 !important;
}

/* Select option styling */
select option {
    background-color: var(--steel-dark) !important;
    color: var(--text-primary) !important;
}

/* ===== PREMIUM ARROW & CHEVRON STYLING ===== */

/* Chevron/expand-collapse arrows */
[class*="chevron"],
[class*="arrow"],
.expand-icon,
.collapse-icon,
button[aria-expanded],
a[aria-expanded] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease !important;
    color: var(--steel-orange) !important;
}

/* Chevron rotate on expanded state */
[aria-expanded="true"] [class*="chevron"],
[aria-expanded="true"] [class*="arrow"],
button[aria-expanded="true"] svg,
a[aria-expanded="true"] svg {
    transform: rotate(180deg) !important;
}

/* Arrow hover effect - lift and glow */
[class*="chevron"]:hover,
[class*="arrow"]:hover,
.expand-icon:hover,
.collapse-icon:hover,
button[aria-expanded]:hover,
a[aria-expanded]:hover {
    color: var(--steel-orange-light) !important;
    filter: drop-shadow(0 0 8px var(--steel-orange-glow)) !important;
    transform: translateY(-2px) !important;
}

/* Arrow animation keyframe */
@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Bouncing arrow for interactive elements */
.arrow-bounce {
    animation: arrow-bounce 1.5s ease-in-out infinite !important;
}

/* Search box arrow/icon styling */
input[type="search"]::before,
.search-icon,
.search-button {
    color: var(--steel-orange) !important;
    transition: all 0.2s ease !important;
}

input[type="search"]:focus::before,
.search-icon:focus,
input[type="search"]:focus ~ .search-button {
    color: var(--steel-orange-light) !important;
    filter: brightness(1.2) drop-shadow(0 0 8px var(--steel-orange-glow)) !important;
}

/* Inline chevron/arrow buttons */
button.chevron,
a.chevron,
.chevron-button {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
    border: 1px solid rgba(255, 107, 53, 0.2) !important;
    color: var(--steel-orange) !important;
    padding: 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.375rem !important;
    line-height: 1 !important;
}

button.chevron:hover,
a.chevron:hover,
.chevron-button:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
    border-color: rgba(255, 107, 53, 0.2) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 8px var(--steel-orange-glow) !important;
}

/* SVG arrows inside buttons */
button svg,
a svg,
.chevron-button svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
    color: var(--steel-orange);
}

button:hover svg,
a:hover svg {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px var(--steel-orange-glow));
}

/* Expand/collapse chevron chevron arrows in sidebar */
button.nav-item svg {
    color: var(--steel-orange);
    stroke-width: 1.5;
}

button.nav-item:hover svg {
    color: var(--steel-orange-light);
    stroke-width: 2;
    filter: drop-shadow(0 0 8px var(--steel-orange-glow));
}

/* Chevron rotation animation on expand */
button.nav-item svg[stroke-linecap="round"] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, filter 0.2s ease;
}

/* Right-pointing chevron (8.25 4.5l7.5 7.5-7.5 7.5) style */
button svg[d*="8.25"] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

button.nav-item svg[d*="8.25"] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

button:hover svg[d*="8.25"] {
    transform: scaleX(1.1) scaleY(1.1);
}

/* ===== NAVIGATION PAGINATION ARROWS ===== */

/* Pagination buttons */
nav a[rel="prev"],
nav a[rel="next"],
a[aria-label*="previous"],
a[aria-label*="next"],
.pagination a {
    color: var(--steel-orange) !important;
    border-color: rgba(255, 107, 53, 0.2) !important;
    transition: all 0.2s ease !important;
}

nav a[rel="prev"]:hover,
nav a[rel="next"]:hover,
a[aria-label*="previous"]:hover,
a[aria-label*="next"]:hover,
.pagination a:hover {
    color: var(--steel-orange-light) !important;
    border-color: rgba(255, 107, 53, 0.2) !important;
    background-color: rgba(255, 107, 53, 0.05) !important;
    box-shadow: 0 0 8px var(--steel-orange-glow) !important;
    transform: translateY(-2px) !important;
}

/* Current page indicator */
.pagination span[aria-current="page"],
.pagination .current {
    background-color: var(--steel-orange) !important;
    color: white !important;
    border-color: var(--steel-orange) !important;
    font-weight: 600 !important;
    box-shadow: 0 0 15px var(--steel-orange-glow) !important;
}

/* Breadcrumb arrows/separators */
nav[aria-label="Breadcrumb"] span,
.breadcrumb-separator {
    color: var(--text-secondary) !important;
}

/* Arrow link icons */
a[class*="arrow-right"],
a[class*="arrow-left"],
.arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    color: var(--steel-orange);
    transition: all 0.2s ease;
}

a[class*="arrow-right"]:hover,
a[class*="arrow-left"]:hover,
.arrow-icon:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%);
    color: var(--steel-orange-light);
    transform: scale(1.15);
    box-shadow: 0 0 10px var(--steel-orange-glow);
}

/* Arrow animations for right-pointing chevrons */
@keyframes chevron-pulse {
    0%, 100% {
        transform: translateX(0);
        filter: drop-shadow(0 0 4px var(--steel-orange-glow));
    }
    50% {
        transform: translateX(2px);
        filter: drop-shadow(0 0 8px var(--steel-orange-glow));
    }
}

/* Apply pulse to interactive arrows on hover */
button.nav-item:hover svg[d*="8.25"],
a[class*="arrow"]:hover svg {
    animation: chevron-pulse 1.2s ease-in-out 1;
}

/* Arrow expand/collapse smooth transitions */
.rotate-90 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Make SVG arrows bold and prominent */
svg[stroke-linecap="round"] {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Glowing effect for active/focused arrows */
svg.text-white {
    color: var(--steel-orange) !important;
}

svg.text-gray-400 {
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
}

button.bg-gray-800 svg {
    color: #d1d5db !important;
}

/* Better visibility for all navigation indicators - no outline focus ring */
nav button:focus svg,
nav a:focus svg {
    /* focus outline removed for clean minimal UI */
}

/* Force light grey color on all navigation SVG chevrons and arrows */
.nav-item svg,
nav svg,
button.nav-item svg,
.sidebar-steel svg {
    color: #d1d5db !important;
    transition: color 0.2s ease, filter 0.2s ease;
}

/* Enhanced glow on chevron hover */
button.nav-item:hover svg,
button.nav-item:focus svg {
    color: #e5e7eb !important;
    filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.1)) !important;
}

/* Make all stroke-based SVGs in nav light grey */
nav [stroke="currentColor"],
button.nav-item [stroke="currentColor"],
.nav-item [stroke="currentColor"] {
    stroke: #d1d5db !important;
}

nav button:hover [stroke="currentColor"],
nav button:focus [stroke="currentColor"] {
    stroke: #e5e7eb !important;
    filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.1)) !important;
}

/* Form label styling */
label {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

label.text-gray-700 {
    color: var(--text-primary) !important;
}

/* Form field error messages */
.text-red-600,
.text-red-700 {
    color: #ef4444 !important;
}

/* Form field success states */
.border-green-500 {
    border-color: #10b981 !important;
}

input.border-green-500:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

/* Focus states for Tailwind classes */
.focus\:border-brand-500:focus {
    border-color: var(--steel-orange) !important;
}

.focus\:ring-brand-500:focus {
    --tw-ring-color: var(--steel-orange-glow) !important;
}

/* Link colors */
a.text-brand-600,
.text-brand-600 {
    color: var(--steel-orange) !important;
}

a:hover.text-brand-600 {
    color: var(--steel-orange-light) !important;
}

/* Button overrides */
.bg-brand-600 {
    background-color: var(--steel-orange) !important;
}

.hover\:bg-brand-500:hover {
    background-color: var(--steel-orange-light) !important;
}

.bg-gray-600 {
    background-color: var(--steel-medium) !important;
}

.hover\:bg-gray-500:hover {
    background-color: var(--steel-light) !important;
}

/* Universal panel/card treatment across all pages */
.rounded-lg.border,
.rounded-md.border,
.rounded-xl.border,
.bg-gray-50.border,
.bg-white.border,
.overflow-hidden.border {
    background: linear-gradient(180deg, var(--steel-dark) 0%, #171717 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: var(--shadow-md) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rounded-lg.border:hover,
.rounded-md.border:hover,
.rounded-xl.border:hover,
.bg-gray-50.border:hover,
.bg-white.border:hover,
.overflow-hidden.border:hover {
    border-color: rgba(255, 107, 53, 0.35) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 107, 53, 0.12) !important;
}

/* Universal button polish */
button,
a.inline-flex,
.inline-flex.items-center,
.btn {
    transition: box-shadow 0.25s ease, filter 0.25s ease, opacity 0.2s ease;
}

button:hover,
a.inline-flex:hover,
.inline-flex.items-center:hover,
.btn:hover {
    filter: brightness(1.05);
}

button:active,
a.inline-flex:active,
.inline-flex.items-center:active,
.btn:active {
    filter: brightness(0.95);
}

/* Keep neutral/secondary buttons in dark steel style */
.bg-gray-700,
.bg-slate-700,
.bg-gray-600 {
    background: linear-gradient(180deg, #2a3342 0%, #1f2937 100%) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.bg-gray-700:hover,
.bg-slate-700:hover,
.bg-gray-600:hover {
    border-color: rgba(255, 107, 53, 0.35) !important;
    box-shadow: 0 0 14px rgba(255, 107, 53, 0.16);
}

/* Universal input polish */
input,
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(255, 107, 53, 0.35) !important;
}

/* Page level motion for content blocks */
main > div > * {
    animation: fadeInUp 0.35s ease-out;
}

/* Subtle glow for section headings and descriptions */
h1, h2 {
    text-shadow: 0 0 16px rgba(255, 107, 53, 0.08);
}

.text-gray-500,
.text-slate-500,
.text-slate-600 {
    color: var(--text-secondary) !important;
}

/* Shadow overrides for dark theme */
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.4) !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4) !important;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.5) !important;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.6) !important;
}

/* Rounded corners with dark backgrounds — no overflow hidden to avoid clipping dropdowns */

/* Empty state messaging */
td[colspan] {
    color: var(--text-secondary) !important;
}

/* Ensure all paragraph text is visible */
p {
    color: var(--text-secondary);
}

p.text-sm {
    color: var(--text-secondary) !important;
}

/* Page title descriptions */
.text-sm.text-gray-500,
.text-sm.text-slate-600 {
    color: var(--text-secondary) !important;
}

/* Pagination text */
nav p {
    color: var(--text-secondary) !important;
}

/* Make sure all spans inherit proper colors */
span {
    color: inherit;
}
/* Enhance Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--steel-darkest);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--steel-orange) 0%, var(--steel-orange-dark) 100%);
    border-radius: 10px;
    border: 2px solid var(--steel-darkest);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steel-orange-light);
    box-shadow: 0 0 10px var(--steel-orange-glow);
}

/* ===== COMPREHENSIVE FORM STYLING ===== */

/* Form wrapper containers */
form {
    width: 100%;
}

form.inline,
.ui-page-actions form,
.ui-modal-footer form {
    width: auto;
}

/* Form section panels */
form > div.bg-white,
form > div.rounded-lg,
form > div.shadow {
    background: var(--steel-dark) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Form field wrappers */
.space-y-6 > div,
.grid > div {
    color: var(--text-primary) !important;
}

/* Form labels */
form label,
.form-label {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin-bottom: 0.375rem;
    display: block;
}

/* Required field indicator */
label > .text-red-600,
.required {
    color: #ef4444 !important;
    margin-left: 0.25rem;
}

/* Form field help text */
.text-sm.text-gray-500,
.help-text,
form > div > p {
    color: var(--text-secondary) !important;
}

/* Form error messages */
form .text-red-600,
form .text-red-700,
.errorlist li {
    color: #ef4444 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Error field styling */
input.border-red-500,
select.border-red-500,
textarea.border-red-500 {
    border-color: #ef4444 !important;
}

input.border-red-500:focus,
select.border-red-500:focus,
textarea.border-red-500:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 0 0 20px rgba(239, 68, 68, 0.2) !important;
}

/* Red background error boxes */
.bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.bg-red-50 p,
.bg-red-50 li {
    color: #ef4444 !important;
}

/* Form field containers with better spacing */
.grid.grid-cols-1 > div,
.grid.grid-cols-2 > div,
.grid.grid-cols-3 > div {
    display: flex;
    flex-direction: column;
}

/* Ensure all input-adjacent text is formatted */
input + small,
select + small,
textarea + small {
    color: var(--text-secondary) !important;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Fieldset styling */
fieldset {
    border: 1px solid var(--border-color) !important;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

fieldset legend {
    color: var(--text-white) !important;
    font-weight: 600;
    padding: 0 0.5rem;
    margin-left: -0.5rem;
}

/* Checkbox/radio containers */
.flex.items-center.gap-2,
.flex.items-end {
    color: var(--text-primary) !important;
}

/* Ensure all form text is visible */
form * {
    color: inherit;
}

/* Cancel/secondary button links in forms */
a.bg-white,
a.ring-1.ring-inset.ring-gray-300 {
    background-color: var(--steel-medium) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

a.bg-white:hover,
a.ring-1.ring-inset.ring-gray-300:hover {
    background-color: var(--steel-light) !important;
    border-color: rgba(255, 107, 53, 0.2) !important;
}

/* Default button styling for all links that look like buttons */
a.rounded-md.px-3.py-2.text-sm.font-semibold {
    transition: all 0.2s ease;
}

/* ===== SEARCHABLE SELECT - Dark Theme ===== */
.ss-wrapper {
    position: relative;
    overflow: visible !important;
}

.ss-dropdown {
    background-color: var(--steel-dark) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    scrollbar-width: thin;
    scrollbar-color: var(--steel-lighter) var(--steel-dark);
}

.ss-dropdown .ss-option {
    color: var(--text-primary) !important;
    padding: 0.5rem 0.75rem !important;
    scroll-snap-align: start;
}

.ss-dropdown .ss-option.text-gray-400,
.ss-dropdown .ss-option.italic {
    color: var(--text-tertiary) !important;
}

.ss-dropdown .ss-option:hover,
.ss-dropdown .ss-option.bg-gray-100 {
    background-color: var(--steel-medium) !important;
    color: var(--text-white) !important;
}

.ss-dropdown .ss-option.bg-brand-50 {
    background-color: rgba(255, 107, 53, 0.1) !important;
}

.ss-dropdown .ss-option.bg-brand-50 .text-brand-600 {
    color: var(--steel-orange) !important;
}

.ss-dropdown::-webkit-scrollbar {
    width: 6px;
}

.ss-dropdown::-webkit-scrollbar-track {
    background: var(--steel-dark);
}

.ss-dropdown::-webkit-scrollbar-thumb {
    background: var(--steel-lighter);
    border-radius: 3px;
}

/* ===== DISABLED STATE STYLING ===== */
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: var(--steel-darker) !important;
    color: var(--text-tertiary) !important;
}

button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ===== INPUT HEIGHT CONSISTENCY ===== */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="url"],
input[type="search"],
select,
.ss-input {
    height: 2.5rem !important;
    box-sizing: border-box !important;
}

textarea {
    min-height: 5rem;
}

/* ===== BULK SELECTION BAR ===== */
.bulk-action-bar {
    background: var(--steel-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.bulk-action-bar .bulk-count {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== NAVBAR DROPDOWN Z-INDEX ===== */
nav .relative > div[x-show] {
    z-index: 9999 !important;
}

/* ===== BENTO BOX DASHBOARD ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1.25rem;
}

@media (max-width: 1279px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-welcome,
    .bento-revenue,
    .bento-recent-orders,
    .bento-action-center {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-welcome,
    .bento-revenue,
    .bento-recent-orders,
    .bento-action-center {
        grid-column: span 1;
    }
}

@media (min-width: 1280px) {
    .bento-welcome       { grid-column: span 2; }
    .bento-revenue       { grid-column: span 2; }
    .bento-recent-orders { grid-column: span 2; }
    .bento-action-center { grid-column: span 4; }
}

/* Bento card base */
.bento-card {
    background: var(--steel-dark);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 107, 53, 0.08);
    transform: translateY(-2px);
}

/* Welcome card */
.bento-welcome {
    background: linear-gradient(135deg, #1e1e1e 0%, #222222 60%, rgba(255, 107, 53, 0.06) 100%);
    border-color: rgba(255, 107, 53, 0.2);
}

.bento-welcome::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--steel-orange), transparent);
    border-radius: 1rem 1rem 0 0;
}

/* Revenue hero card */
.bento-revenue {
    background: linear-gradient(135deg, #1a1f1a 0%, #1c201c 60%, rgba(16, 185, 129, 0.06) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.bento-revenue::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--steel-green), transparent);
    border-radius: 1rem 1rem 0 0;
}

/* Stat mini-cards */
.bento-stat-orange { border-left: 3px solid var(--steel-orange); }
.bento-stat-blue   { border-left: 3px solid #4a90e2; }
.bento-stat-green  { border-left: 3px solid var(--steel-green); }
.bento-stat-purple { border-left: 3px solid var(--steel-purple); }
.bento-stat-amber  { border-left: 3px solid var(--steel-yellow); }

/* Action center card */
.bento-action-center {
    border-color: rgba(168, 85, 247, 0.2);
}

.bento-action-center::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--steel-purple), transparent);
    border-radius: 1rem 1rem 0 0;
}

/* Bento card header */
.bento-card-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bento-card-body {
    padding: 1.25rem 1.5rem;
}

/* Big number display */
.bento-kpi-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-primary);
}

.bento-kpi-value.orange { color: var(--steel-orange); }
.bento-kpi-value.green  { color: var(--steel-green); }
.bento-kpi-value.blue   { color: #4a90e2; }
.bento-kpi-value.purple { color: var(--steel-purple); }
.bento-kpi-value.yellow { color: var(--steel-yellow); }

/* Bento list items */
.bento-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.bento-list-item:last-child { border-bottom: none; }

.bento-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Bento dot indicator */
.bento-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
