@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Inter:wght@300;500;700;900&display=swap');

:root {
    /* Base */
    --bg-main: #050505;
    --text-light: #ffffff;
    --text-muted: #888888;
    
    /* Lexus Theme */
    --lexus-bg: linear-gradient(145deg, #18191a, #0a0a0a);
    --lexus-border: rgba(200, 200, 210, 0.2);
    --lexus-glow: rgba(220, 220, 255, 0.05);
    --lexus-accent: #b0b0b0;

    /* Toyota Theme */
    --toyota-bg: linear-gradient(135deg, #111111, #000000);
    --toyota-border: #EB0A1E;
    --toyota-glow: rgba(235, 10, 30, 0.15);
    --toyota-accent: #EB0A1E;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* -------------------------------------
 * SPLIT SCREEN LAYOUT
 * ------------------------------------- */
.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.brand-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-section:last-child {
    border-right: none;
}

/* Brand Headers */
.brand-header {
    text-align: center;
    margin-bottom: 2rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-header h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.brand-header p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 5px;
    text-transform: uppercase;
}

/* Specific Brand Styling */
.lexus-section {
    background: var(--lexus-bg);
}
.lexus-section .brand-header h1 {
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.toyota-section {
    background: var(--toyota-bg);
}
.toyota-section .brand-header h1 {
    color: #ffffff;
    text-shadow: 0px 4px 20px rgba(235, 10, 30, 0.5);
}

/* -------------------------------------
 * QUEUE GRID (2x3 format as requested)
 * ------------------------------------- */
.queue-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 1; /* Takes remaining height */
}

/* The Number Card */
.unit-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

/* Brand specific card highlights */
.lexus-section .unit-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.lexus-section .unit-card::before {
    background: linear-gradient(90deg, transparent, var(--lexus-accent), transparent);
}

.toyota-section .unit-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toyota-section .unit-card::before {
    background: linear-gradient(90deg, transparent, var(--toyota-accent), transparent);
}

.unit-label {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 2;
}

.unit-number-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.unit-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    z-index: 2;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
}

.lexus-section .unit-number {
    color: #ffffff;
    text-shadow: 0 0 20px var(--lexus-glow);
}

.toyota-section .unit-number {
    color: #ffffff;
}

/* -------------------------------------
 * ANIMATIONS
 * ------------------------------------- */
@keyframes numberPop {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.15); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

.animate-pop {
    animation: numberPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Flash effect for Lexus */
@keyframes flashLexus {
    0% { box-shadow: inset 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: inset 0 0 40px rgba(255,255,255,0.2); }
    100% { box-shadow: inset 0 0 0 rgba(255,255,255,0); }
}

/* Flash effect for Toyota */
@keyframes flashToyota {
    0% { box-shadow: inset 0 0 0 rgba(235, 10, 30, 0); }
    50% { box-shadow: inset 0 0 50px rgba(235, 10, 30, 0.4); }
    100% { box-shadow: inset 0 0 0 rgba(235, 10, 30, 0); }
}

.flash-lexus { animation: flashLexus 0.6s ease; }
.flash-toyota { animation: flashToyota 0.6s ease; }


/* -------------------------------------
 * DASHBOARD SPECIFIC STYLES
 * ------------------------------------- */
body.dashboard {
    overflow-y: auto;
    padding: 2rem;
    height: auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.link-button {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}
.link-button:hover {
    background: rgba(255,255,255,0.2);
}

.controls-wrapper {
    display: flex;
    gap: 2rem;
}


.controls-brand-section {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.control-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.control-card h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.number-input {
    width: 80px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
}
.number-input:focus {
    outline: none;
    border-color: var(--text-light);
}

/* Remove arrows from number input */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

.toyota-controls .btn:hover {
    background: var(--toyota-accent);
}
.lexus-controls .btn:hover {
    background: #ffffff;
    color: #000;
}

@media (max-width: 768px) {
    .controls-wrapper {
        flex-direction: column;
    }
    .controls-grid {
        grid-template-columns: 1fr;
    }
    .input-group {
        gap: 20px;
    }
}
