@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #ffffff;
    --bg-panel:     #44A075;
    --bg-sidebar:   #4FC08D;
    --bg-card:      #44A075;
    --border:       #1a2540;

    --no-priority:  #000000;
    --priority:     #FF0000;
    --priority-glow:rgba(255, 107, 53, 0.35);

    --text:         #cdd5e0;
    --text-muted:   #4a5568;
    --text-dim:     #2d3748;

    --font-display: 'Bebas Neue', sans-serif;
    --font-ui:      'Barlow Condensed', sans-serif;
    --font-mono:    'Space Mono', monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    height: 100vh;
    overflow: hidden;
}

/* ── Layout ────────────────────────────────────────────────── */
#painel {
    display: flex;
    height: 100vh;
}

/* ── Featured (main area) ──────────────────────────────────── */
#featured {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Scan-line flash on new ticket */
#featured::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

#featured.flash::after {
    animation: scan-sweep .6s ease-out forwards;
}

@keyframes scan-sweep {
    0%   { transform: translateY(-100%); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

#featured-inner {
    text-align: center;
    padding: 1rem 2rem;
}

#featured-inner.ticket-enter {
    animation: ticket-in .4s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes ticket-in {
    from { opacity: 0; transform: translateY(-16px) scale(.97); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: none; }
}

#featured-label {
    font-family: var(--font-mono);
    font-size: 5vh;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

#featured-title {
    font-family: var(--font-display);
    font-size: 30vh;
    line-height: .9;
    color: var(--no-priority);
    letter-spacing: .02em;
    transition: color .3s;
}

#featured-title.priority {
    color: var(--priority);
}

#featured-subtitle {
    font-family: var(--font-ui);
    font-size: 5vh;
    font-weight: 300;
    letter-spacing: .15em;
    color: #000000;
    margin-top: .75rem;
    text-transform: uppercase;
}

#featured-description {
    font-family: var(--font-mono);
    font-size: 3vh;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: .5rem;
    min-height: 1.2em;
}

#featured-empty {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: .15em;
    color: var(--text-dim);
    font-style: italic;
}

/* ── Featured footer (logo) ────────────────────────────────── */
#featured-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #F1F1F1;
}

#featured-footer img {
    height: 100%;
    width: auto;
}

#featured-footer svg {
    height: 60%;
    width: auto;
}

#featured-footer svg {
    opacity: .2;
}

#unidade-label {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Sidebar ───────────────────────────────────────────────── */
#sidebar {
    width: 25vw;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
}

/* ── History ───────────────────────────────────────────────── */
#history {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    scrollbar-width: none;
}
#history::-webkit-scrollbar { display: none; }

#history-heading {
    font-family: var(--font-mono);
    font-size: 2vh;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .5rem;
    padding-bottom: .5rem;
}

.history-item {
    padding: .65rem .85rem;
    border-left: 2px solid var(--border);
    margin-bottom: .5rem;
    background: #d2ffea;
    border-radius: 0 3px 3px 0;
    opacity: .6;
    transition: opacity .3s;
    animation: slide-in .35s cubic-bezier(.22, 1, .36, 1) both;
}

.history-item:first-child { opacity: 1; }

@keyframes slide-in {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: inherit; transform: none; }
}

.history-item.priority { border-left-color: var(--priority); }
.history-item:not(.priority) { border-left-color: #000000; }

.hi-ticket {
    font-family: var(--font-display);
    font-size: 5vh;
    line-height: 1;
    color: #000000;
    letter-spacing: .04em;
}

.history-item.priority .hi-ticket { color: var(--priority); }

.hi-desk {
    font-family: var(--font-mono);
    font-size: 2.5vh;
    color: #333333;
    margin-top: .2rem;
    letter-spacing: .08em;
}

.hi-service {
    font-family: var(--font-ui);
    font-size: 2vh;
    color: var(--text-muted);
    margin-top: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#history-empty {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
}

/* ── Clock ─────────────────────────────────────────────────── */
#clock-box {
    display: flex;
    flex-flow: column;
    justify-content: center;
    height: 10vh;
    padding: 1.25rem 1rem;
    text-align: center;
    background: var(--bg-panel);
}

#clock-time {
    font-family: var(--font-display);
    font-size: 3vh;
    letter-spacing: .08em;
    color: #000000;
    line-height: 1;
}

#clock-date {
    font-family: var(--font-mono);
    font-size: 1vh;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: .4rem;
}
