html, body {
    height: 100%;
    background: rgb(var(--v-theme-background, 18, 18, 18));
}

/* Ensure v-app covers full viewport */
.v-application {
    min-height: 100vh;
}

/* Import Inter for a more premium feel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'RobotoFlex';
    src: url('/static/fonts/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Inter', 'RobotoFlex', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.01em;
}

/* ========================================
   PREMIUM THEME ENHANCEMENTS
   ======================================== */

/* Premium Gold Accents - Theme Aware */
:root {
    --gold-primary: #B8860B;
    --gold-light: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #B8860B 100%);
}

/* Dark theme variables */
.v-theme--dark {
    --surface-elevated: #252525;
    --surface-overlay: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --scrollbar-thumb: #3D3D3D;
    --scrollbar-hover: #4D4D4D;
    --field-border: rgba(255, 255, 255, 0.12);
    --field-border-hover: rgba(255, 255, 255, 0.24);
    --tooltip-bg: #2D2D2D;
}

/* Light theme variables */
.v-theme--light {
    --surface-elevated: #FFFFFF;
    --surface-overlay: rgba(0, 0, 0, 0.04);
    --border-subtle: rgba(0, 0, 0, 0.12);
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #666666;
    --scrollbar-thumb: #C0C0C0;
    --scrollbar-hover: #A0A0A0;
    --field-border: rgba(0, 0, 0, 0.15);
    --field-border-hover: rgba(0, 0, 0, 0.3);
    --tooltip-bg: #333333;
}

/* Light theme - make available indicator more visible */
.v-theme--light .status-dot.available,
.v-theme--light .legend-dot-available {
    background: #9CA3AF !important;
    box-shadow: none;
}

/* Light theme - sidebar styling */
.v-theme--light .v-navigation-drawer {
    background: #F8F8F8 !important;
}

/* Status Row Styles - Premium Version */
.reserved {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.05) 100%) !important;
    border-left: 3px solid #FBBF24 !important;
}

.sold {
    background: rgba(100, 100, 100, 0.15) !important;
    opacity: 0.6;
}

/* Hide un-compiled Vue.js templates until they're ready */
[v-cloak] {
    display: none;
}

/* ========================================
   TYPOGRAPHY ENHANCEMENTS
   ======================================== */

/* Make prices stand out */
.price-display,
h4 .text-caption + span {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Unit IDs with premium styling */
.unit-id {
    font-weight: 600;
    color: var(--gold-light);
}

/* ========================================
   TABLE ENHANCEMENTS
   ======================================== */

/* Refined table hover */
.v-data-table .v-data-table__tr:hover {
    background: var(--surface-overlay) !important;
}

/* Premium table header */
.v-data-table thead th {
    text-transform: uppercase;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* Status badges */
.status-available {
    color: #4ADE80;
}

.status-reserved {
    color: #FBBF24;
}

.status-sold {
    color: #A0A0A0;
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */

/* Gold button - Premium accent button */
.gold-btn,
.v-btn.gold-btn {
    background: var(--gold-gradient) !important;
    color: #000 !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
    transition: all 0.2s ease;
}

.gold-btn:hover,
.v-btn.gold-btn:hover {
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}

/* Gold button icon color */
.gold-btn .v-icon,
.v-btn.gold-btn .v-icon {
    color: #000 !important;
}

/* Outlined buttons refinement */
.v-btn--variant-outlined {
    border-color: var(--border-subtle) !important;
}

.v-btn--variant-outlined:hover {
    background: var(--surface-overlay) !important;
}

/* ========================================
   CARD ENHANCEMENTS
   ======================================== */

/* Elevated cards with subtle glow */
.v-card {
    border: 1px solid var(--border-subtle);
}

.v-card--elevated,
.v-card[elevation] {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

/* ========================================
   NAVIGATION & SIDEBAR
   ======================================== */

/* App bar refinement */
.v-app-bar {
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* Navigation drawer */
.v-navigation-drawer {
    border-right: 1px solid var(--border-subtle) !important;
}

/* Hide text in rail mode - only show icons */
.v-navigation-drawer--rail .v-list-item-title,
.v-navigation-drawer--rail .v-list-item-subtitle {
    opacity: 0;
    transition: opacity 0.2s;
}

.v-navigation-drawer:not(.v-navigation-drawer--rail) .v-list-item-title {
    opacity: 1;
    transition: opacity 0.2s 0.1s;
}

/* Spacing between icon and text in nav items */
.v-navigation-drawer .v-list-item__prepend {
    margin-inline-end: 16px;
}

/* Active nav item */
.v-list-item--active {
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.15) 0%, transparent 100%) !important;
    border-left: 3px solid var(--gold-primary);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

/* Text field focus state */
.v-field--focused {
    border-color: var(--gold-primary) !important;
}

.v-field--focused .v-field__outline {
    --v-field-border-opacity: 1;
    color: var(--gold-primary) !important;
}

/* Input labels */
.v-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Switch - theme-aware track */
.v-theme--dark .v-switch .v-switch__track {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.v-theme--dark .v-switch--inset .v-switch__track {
    background: rgba(255, 255, 255, 0.2);
}

.v-theme--light .v-switch .v-switch__track {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.v-theme--light .v-switch--inset .v-switch__track {
    background: rgba(0, 0, 0, 0.15);
}

/* ========================================
   CHIPS & BADGES
   ======================================== */

/* Premium chip styling */
.v-chip {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Status chip with glow effect */
.v-chip.status-chip-available {
    background: rgba(74, 222, 128, 0.15) !important;
    color: #4ADE80 !important;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.v-chip.status-chip-reserved {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #FBBF24 !important;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ========================================
   PROGRESS & INDICATORS
   ======================================== */

/* Progress bar with gold */
.v-progress-linear {
    border-radius: 4px;
    overflow: hidden;
}

.v-progress-linear__determinate {
    background: var(--gold-gradient) !important;
}

/* ========================================
   DIALOGS & OVERLAYS
   ======================================== */

/* Dialog backdrop blur */
.v-overlay__scrim {
    backdrop-filter: blur(4px);
}

/* Dialog cards */
.v-dialog .v-card {
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5) !important;
}

/* ========================================
   SNACKBAR
   ======================================== */

.v-snackbar__wrapper {
    border-radius: 8px !important;
}

/* Snackbar - always dark for visibility */
.v-snackbar__wrapper {
    background: #333 !important;
    color: #fff !important;
}

/* ========================================
   UNIT DRAWER ENHANCEMENTS
   ======================================== */

.unit-drawer {
    border-left: 1px solid var(--border-subtle) !important;
}

.unit-drawer .detail-item {
    background: var(--surface-elevated) !important;
    border: 1px solid var(--border-subtle);
}

.unit-drawer .detail-label {
    color: var(--text-muted) !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.unit-drawer .detail-value {
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb, #3D3D3D);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover, #4D4D4D);
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Subtle hover transitions */
.v-btn,
.v-card,
.v-chip,
.v-list-item {
    transition: all 0.2s ease !important;
}

/* Row hover highlight */
.v-data-table tbody tr {
    transition: background 0.15s ease;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 960px) {
    .v-data-table thead th {
        font-size: 0.65rem !important;
    }

    /* Enable horizontal scrolling for tables on mobile */
    .v-data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .v-data-table > .v-table__wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td {
    white-space: nowrap;
}

/* Dropzone Styles - Theme-aware */
.dropzone {
    border: 2px dashed var(--gold-primary);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-light);
}

.dropzone.dz-drag-hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-light);
    border-style: solid;
}

.dropzone .dz-message {
    font-size: 16px;
    color: inherit;
    margin: 0;
}

.dropzone .dz-preview {
    margin: 10px;
}

.dropzone .dz-preview .dz-image {
    border-radius: 4px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    position: relative;
    display: block;
    z-index: 10;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dropzone .dz-preview .dz-details {
    font-size: 13px;
    color: #6c757d;
}

.dropzone .dz-preview .dz-filename {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropzone .dz-preview .dz-remove {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropzone .dz-preview .dz-remove:hover {
    background: #bb2d3b;
}

.dropzone .dz-preview.dz-error .dz-error-message {
    display: block;
    background: #dc3545;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.dropzone .dz-preview.dz-success .dz-success-mark {
    color: #198754;
    font-size: 24px;
}

.dropzone .dz-preview .dz-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.dropzone .dz-preview .dz-progress .dz-upload {
    display: block;
    height: 100%;
    background: #0d6efd;
    transition: width 0.3s ease;
}

/* Color Picker Styles */
.color-picker input[type="color"] {
    height: 50px;
    cursor: pointer;
    border-radius: 4px;
}

/* ========================================
   TOOLTIP FIX FOR DARK THEME
   ======================================== */

.v-tooltip > .v-overlay__content {
    background: var(--tooltip-bg, #2D2D2D) !important;
    color: #F5F5F5 !important;
}

/* ========================================
   TABLER ICONS IN VUETIFY
   ======================================== */

/* Ensure Tabler icons display correctly in Vuetify components */
.v-icon i.ti {
    font-size: inherit;
    color: inherit;
}

/* Smaller close icon for filter chips */
.v-chip__close i.ti {
    font-size: 14px;
}

/* ========================================
   CLEAN FORM FIELDS - GLOBAL VERCEL STYLE
   ======================================== */

/* Global outlined field styling */
.v-field--variant-outlined .v-field__outline__start,
.v-field--variant-outlined .v-field__outline__end,
.v-field--variant-outlined .v-field__outline__notch::before,
.v-field--variant-outlined .v-field__outline__notch::after {
    border-color: var(--field-border, rgba(255, 255, 255, 0.12)) !important;
}

.v-field--variant-outlined:hover .v-field__outline__start,
.v-field--variant-outlined:hover .v-field__outline__end,
.v-field--variant-outlined:hover .v-field__outline__notch::before,
.v-field--variant-outlined:hover .v-field__outline__notch::after {
    border-color: var(--field-border-hover, rgba(255, 255, 255, 0.24)) !important;
}

.v-field--focused .v-field__outline__start,
.v-field--focused .v-field__outline__end,
.v-field--focused .v-field__outline__notch::before,
.v-field--focused .v-field__outline__notch::after {
    border-color: var(--gold-primary) !important;
}

.v-field--variant-outlined .v-field__outline {
    --v-field-border-opacity: 1;
}

.v-field {
    border-radius: 8px !important;
}

/* Clean select dropdown arrow */
.v-select .v-field__append-inner .v-icon,
.v-autocomplete .v-field__append-inner .v-icon {
    color: #666 !important;
}