:root {
    /* Classical Whisky Salon Color Palette */
    --color-whisky-amber: #B8860B; /* Muted goldenrod */
    --color-whisky-gold: #CD853F; /* Brushed copper */
    --color-whisky-copper: #A0522D; /* Rich sienna */
    --color-whisky-mahogany: #8B4513; /* Saddle brown */
    --color-whisky-oak: #D2691E; /* Chocolate */
    --color-whisky-walnut: #654321; /* Dark brown */
    
    /* Primary Colors - Classical and Refined */
    --color-primary: #B8860B; /* Muted gold */
    --color-secondary: #8B4513; /* Heritage brown */
    --color-accent: #CD853F; /* Brushed copper */
    
    /* Background Colors - Elegant Parchment */
    --color-background: #F0EDE4; /* Warm parchment */
    --color-surface: #F3F0E7; /* Light parchment */
    --color-surface-light: #F6F3EA; /* Cream parchment */
    --color-surface-elevated: #F8F6F0; /* Pure cream */
    
    /* Leather and Wood Tones */
    --color-leather: #8B4513; /* Rich leather */
    --color-leather-light: #A0522D; /* Light leather */
    --color-oak-dark: #654321; /* Dark oak */
    --color-mahogany: #722F37; /* Mahogany wood */
    
    /* Text Colors - Aged Ink */
    --color-text: #2B1810; /* Dark sepia ink */
    --color-text-light: #3D2419; /* Medium sepia */
    --color-text-muted: #5C4A3A; /* Muted brown ink */
    --color-text-dim: #6B5B4B; /* Faded ink */
    
    /* Accent Colors - Aged Manuscript */
    --color-burnt-orange: #8B4513;
    --color-cognac: #A0522D;
    --color-brass: #B8860B;
    --color-copper-accent: #CD853F;
    
    /* State Colors - Refined Versions */
    --color-success: #8FBC8F;
    --color-error: #CD5C5C;
    --color-warning: #F4A460;
    --color-info: #4682B4;
    
    /* Utility Colors - Refined Parchment */
    --color-border: #D4C4A8;
    --color-border-light: #E1D5C1;
    --color-hover: rgba(139, 125, 107, 0.1);
    --color-white: #F8F6F0;
    --color-black: #2B1810;
    --color-charcoal: #3D2419;
    
    /* Neutral tones - Elegant variations */
    --color-beige: #E8DCC6;
    --color-beige-light: #EDE2D0;
    --color-beige-dark: #DFD1B8;
    --color-cream: #F2E9DC;
    --color-warm-gray: #8B7355;
    --color-smoke: #A08B6F;
    
    /* Accent colors - Manuscript details */
    --color-gold: #B8860B;
    --color-gold-light: #DAA520;
    --color-gold-dark: #8B6914;
    --color-bronze: #CD7F32;
    
    /* Base colors */
    --color-gray-light: #2A2520;
    --color-gray: #665544;
    
    /* Typography - Classical Heritage */
    --font-serif: 'Cormorant Garamond', 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Inter', 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Cormorant Garamond', serif;
    
    /* Parchment shadows - subtle aging */
    --shadow-sm: 0 1px 3px rgba(43, 24, 16, 0.15);
    --shadow-default: 0 2px 8px rgba(43, 24, 16, 0.2);
    --shadow-md: 0 4px 16px rgba(43, 24, 16, 0.25);
    --shadow-lg: 0 8px 24px rgba(43, 24, 16, 0.3);
    --shadow-xl: 0 12px 32px rgba(43, 24, 16, 0.35);
    
    /* Refined lighting effects */
    --glow-gold: 0 0 20px rgba(184, 134, 11, 0.4);
    --glow-amber: 0 0 16px rgba(205, 133, 63, 0.3);
    --glow-copper: 0 0 12px rgba(160, 82, 45, 0.25);
    
    /* Border radius - slightly reduced for more masculine feel */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.8;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Subtle parchment texture */
    background-image: 
        /* Gentle paper grain texture */
        linear-gradient(45deg, transparent 49%, rgba(139, 125, 107, 0.015) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(122, 110, 95, 0.01) 50%, transparent 51%),
        /* Fine fiber texture */
        linear-gradient(0deg, transparent 49%, rgba(160, 140, 115, 0.008) 50%, transparent 51%),
        linear-gradient(90deg, transparent 49%, rgba(150, 130, 105, 0.006) 50%, transparent 51%),
        /* Gentle depth gradient */
        radial-gradient(ellipse at center, var(--color-surface-light) 0%, var(--color-background) 80%);
    background-size: 
        12px 12px,
        16px 16px,
        4px 100%,
        100% 5px,
        100% 100%;
    background-position: 
        0% 0%,
        0% 0%,
        0% 0%,
        0% 0%,
        center center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-weight: 400;
    letter-spacing: 0.01em;
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 300;
    margin-bottom: 2rem;
}
h2 { 
    font-size: 2rem; 
    font-weight: 300;
    margin-bottom: 1.75rem;
}
h3 { 
    font-size: 1.75rem; 
    font-weight: 400;
    margin-bottom: 1.5rem;
}
h4 { 
    font-size: 1.5rem; 
    font-weight: 400;
}
h5 { 
    font-size: 1.25rem; 
    font-weight: 500;
}
h6 { 
    font-size: 1.125rem; 
    font-weight: 500;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-success);
}

.invalid {
    outline: 1px solid var(--color-error);
}

.validation-message {
    color: var(--color-error);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--color-error);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--color-white);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: var(--color-border);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--color-text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-3 { margin-top: 0.75rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-16 { padding: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pt-12 { padding-top: 3rem; }

.grid { display: grid; }
.gap-3 { gap: 0.75rem; }
.items-center { align-items: center; }

.relative { position: relative; }
.absolute { position: absolute; }

.w-full { width: 100%; }
.max-w-screen-md { max-width: 768px; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-4xl { font-size: 2.25rem; }

/* Component Styles */

/* Button Styles - Classical Elegance */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    border: 2px solid var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-serif);
    letter-spacing: 1px;
    position: relative;
    white-space: nowrap;
    background: var(--color-surface-light);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    font-variant: small-caps;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--color-beige-light);
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--color-gold-light);
    color: var(--color-text);
    border-color: var(--color-gold-dark);
    font-weight: 500;
    box-shadow: var(--shadow-default);
}

.btn-primary:hover {
    background: var(--color-gold);
    border-color: var(--color-bronze);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-elevated);
    border-color: var(--color-whisky-copper);
}

.btn-elegant {
    background: transparent;
    color: var(--color-warm-gray);
    border-color: var(--color-warm-gray);
}

.btn-elegant:hover {
    background: var(--color-warm-gray);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-warm-gray);
    border-color: var(--color-warm-gray);
}

.btn-outline-primary:hover {
    background: var(--color-warm-gray);
    color: var(--color-white);
}

.btn-outline-danger {
    background: transparent;
    color: var(--color-error);
    border-color: var(--color-error);
}

.btn-outline-danger:hover {
    background: var(--color-error);
    color: var(--color-white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

/* Forms - Classical Elegance */
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-surface-light);
    border: 2px solid var(--color-border);
    border-radius: 2px;
    transition: all 0.2s ease;
    font-family: var(--font-serif);
    box-shadow: inset 0 1px 2px rgba(43, 24, 16, 0.1);
    letter-spacing: 0.5px;
}

.form-control::placeholder {
    color: var(--color-text-muted);
    opacity: 0.8;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 
        inset 0 1px 3px rgba(43, 24, 16, 0.15),
        0 0 0 2px rgba(184, 134, 11, 0.3);
    background: var(--color-surface-elevated);
    color: var(--color-text);
}

.form-control:disabled {
    background: var(--color-surface);
    opacity: 0.6;
    cursor: not-allowed;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-light);
}

.form-check-input:checked {
    background: var(--color-warm-gray);
    border-color: var(--color-warm-gray);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--color-text);
}

/* Links */
a {
    color: var(--color-warm-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-smoke);
    text-decoration: none;
}

/* Cards - Classical Elegance */
.card {
    background: var(--color-surface-light);
    border-radius: 3px;
    box-shadow: var(--shadow-default);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--color-border);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Subtle paper texture */
        linear-gradient(45deg, transparent 49%, rgba(139, 125, 107, 0.01) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(122, 110, 95, 0.008) 50%, transparent 51%);
    pointer-events: none;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    background: var(--color-surface-elevated);
}

.card:hover::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(141, 110, 99, 0.06) 0%, transparent 50%),
        linear-gradient(45deg, transparent 25%, rgba(210, 180, 140, 0.05) 50%, transparent 75%);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background-color: var(--color-surface-light);
    border-bottom: 1px solid var(--color-border);
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-text);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Tables - Executive Style */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background-color: var(--color-surface-elevated);
}

.table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--color-surface-light);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(42, 37, 32, 0.5);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\\:w-auto { width: auto; }
    .sm\\:h-auto { height: auto; }
}

@media (min-width: 1024px) {
    .lg\\:w-3\\/4 { width: 75%; }
}

/* Badges - Muted and Sophisticated */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-text);
    background-color: var(--color-surface-elevated);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-border);
}

.badge-success {
    background-color: var(--color-success);
    color: var(--color-white);
    border-color: var(--color-success);
}

.badge-warning {
    background-color: var(--color-warning);
    color: var(--color-black);
    border-color: var(--color-warning);
}

.badge-danger {
    background-color: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}

.badge-info {
    background-color: var(--color-info);
    color: var(--color-white);
    border-color: var(--color-info);
}

.badge-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-secondary);
}

.bg-success {
    background-color: var(--color-success);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

/* Alerts - Refined */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.alert-success {
    color: var(--color-white);
    background-color: rgba(74, 124, 78, 0.2);
    border-color: var(--color-success);
}

.alert-danger {
    color: var(--color-white);
    background-color: rgba(139, 58, 58, 0.2);
    border-color: var(--color-error);
}

.alert-warning {
    color: var(--color-white);
    background-color: rgba(184, 134, 11, 0.2);
    border-color: var(--color-warning);
}

.alert-info {
    color: var(--color-white);
    background-color: rgba(74, 107, 138, 0.2);
    border-color: var(--color-info);
}

/* Navigation Tabs - Executive Style */
.nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-tabs {
    border-bottom: 2px solid var(--color-border);
}

.nav-item {
    margin-bottom: -2px;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-text-light);
    text-decoration: none;
    border: 2px solid transparent;
    border-bottom: none;
    background-color: transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-text);
    background-color: var(--color-surface-light);
}

.nav-link.active {
    color: var(--color-gold-light);
    background-color: var(--color-surface);
    border-color: var(--color-border);
    border-bottom-color: var(--color-surface);
}

/* Modal - Dark and Elegant */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem;
    pointer-events: none;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--color-surface);
    background-clip: padding-box;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    outline: 0;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface-light);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-text);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface-light);
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid var(--color-gold-light);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 0.75rem;
    height: 0.75rem;
    border-width: 0.1em;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }

/* Gap utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col,
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Additional whisky-themed styles - Dark and Refined */
.whisky-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    border: none;
    margin: 2rem 0;
    opacity: 0.5;
}

.text-whisky {
    color: var(--color-primary);
}

.bg-whisky-light {
    background-color: var(--color-surface-light);
}

.border-whisky {
    border-color: var(--color-whisky-copper);
}

/* Page specific styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-surface), var(--color-surface-light));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.stats-card .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold-light);
    font-family: var(--font-serif);
}

/* Custom scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Selection highlighting */
::selection {
    background-color: var(--color-primary);
    color: var(--color-black);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-black);
}


/* PublicLayout - Elegant Card Styles */
@font-face {
    font-family: 'GreatVibes';
    src: url('/fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.elegant-layout {
    background: var(--color-background);
    color: var(--color-text);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 2rem;
}

.elegant-card {
    background: var(--color-background);
    border: 4px double var(--color-oak-dark);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 2rem;
    padding-top: 3rem;
    text-align: center;
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .elegant-layout {
        padding: 3rem 2rem;
    }
    
    .elegant-card {
        padding: 4rem 3rem 2.5rem;
    }
}

.elegant-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'GreatVibes', cursive;
    color: #F0C60A;
    font-size: 2.5rem;
    background-color: #F0EDE4;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.elegant-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.elegant-title {
    text-align: center;
    color: var(--color-text);
    font-size: 2.25rem;
    font-family: var(--font-serif);
    margin: 0;
}

.elegant-divider {
    margin: 0.75rem 0;
    border: none;
    border-top: 1px solid var(--color-oak-dark);
}

.elegant-follow {
    text-align: center;
    color: var(--color-text);
    margin: 0;
}

.elegant-footer p {
    font-size: 0.75rem;
    text-align: center;
    color: var(--color-text);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .elegant-layout {
        width: auto;
        height: auto;
        border-radius: var(--radius-xl);
        max-width: 100vw;
        padding: 1rem;
    }
}

/* Tablet-responsive table styling */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet table improvements */
    table {
        font-size: 0.8rem;
    }
    
    table th,
    table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Hide less important columns on tablets */
    table th:nth-child(4), /* Region */
    table td:nth-child(4),
    table th:nth-child(5), /* Type */
    table td:nth-child(5),
    table th:nth-child(9), /* Tastings count */
    table td:nth-child(9) {
        display: none;
    }
    
    /* Make action buttons smaller */
    table td:last-child button {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        margin: 0.125rem;
    }
    
    /* Stack buttons vertically on narrow tablets */
    table td:last-child div {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Tablet header improvements */
    .mobile-header h1 {
        font-size: 1.875rem !important;
    }
    
    .mobile-header .header-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .mobile-header .header-buttons span {
        order: 2;
    }
    
    .mobile-header .header-buttons button {
        order: 1;
        white-space: nowrap;
    }
    
    /* Tablet filter improvements */
    .mobile-filters {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

/* Mobile-responsive table styling */
@media (max-width: 768px) {
    /* Hide table on mobile and show custom mobile layout */
    table {
        display: none !important;
    }
    
    .mobile-whisky-list {
        display: block !important;
    }
    
    /* Mobile header improvements */
    .mobile-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .mobile-header h1 {
        font-size: 1.75rem !important;
        text-align: center;
    }
    
    .mobile-header .header-buttons {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    /* Mobile filter improvements */
    .mobile-filters {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .mobile-search {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .mobile-search input {
        width: 100% !important;
    }
    
    .mobile-search .search-buttons {
        display: flex !important;
        gap: 0.5rem !important;
    }
    
    .mobile-search .search-buttons button {
        flex: 1 !important;
    }
}
}