﻿:root {
    --ink: #ffffff;
    --muted: #a0a0a0;
    --brand: #d4af37;
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --line: #333333;
    --danger: #b83d3d;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    --gradient-gold: linear-gradient(135deg, lab(74.5447% 12.9328 56.694), lab(86.3164% 5.71117 41.1098));
}
:root[data-theme='BEAUTY_SALON'] {
    --ink: #2d1f36;
    --muted: #8e7d95;
    --brand: #d15faa;
    --bg: #fff3fb;
    --surface: #fff;
    --line: #e7d6e4;
    --danger: #c84668;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    --gradient-gold: linear-gradient(135deg, #f7e1f6, #d38bc1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.brand {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.brand i {
    color: var(--brand);
    font-style: normal;
}

.muted {
    color: var(--muted);
}

.btn {
    border-radius: 50px; /* Botao estilo pill */
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s, background 0.2s;
    background: var(--gradient-gold);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn.alt {
    background: var(--surface);
    color: var(--ink);
}

.btn.danger {
    background: #2a1515;
    color: var(--danger);
}

.btn.small {
    padding: .45rem .65rem;
    font-size: .8rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px; /* Bordas mais arredondadas seguem a tendencia atual */
    padding: 2rem;
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: .4rem;
}

.field label {
    font-size: .8rem;
    font-weight: 800;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: .75rem;
    background: var(--bg);
    color: var(--ink);
    outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

.span-2 {
    grid-column: span 2;
}

.shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    color: var(--muted);
    padding: 1.3rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
}

.sidebar .brand {
    color: var(--ink);
    padding: .5rem;
}

.nav {
    display: grid;
    gap: .35rem;
    margin-top: 2rem;
}

.nav button {
    border: 0;
    text-align: left;
    padding: .8rem 1rem;
    border-radius: 11px;
    color: var(--muted);
    background: transparent;
    font-weight: 700;
}

.nav button.active,
.nav button:hover {
    background: var(--line);
    color: var(--ink);
}

.main {
    min-width: 0;
}

.topbar {
    height: 68px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.content {
    padding: 1.5rem;
    max-width: 1400px;
    margin: auto;
}

.heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.heading h1 {
    margin: 0;
    font-size: 1.8rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.2rem;
}

.stat {
    padding: 1.2rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    margin-top: .25rem;
}

.table-card {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 19px;
}

.table-wrap {
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: .8rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table th {
    font-size: .72rem;
    text-transform: uppercase;
    color: var(--muted);
}

.badge {
    display: inline-block;
    border-radius: 99px;
    padding: .3rem .6rem;
    font-size: .73rem;
    font-weight: 800;
    background: #1a261a;
    color: var(--brand);
}

.badge.off {
    background: #261a1a;
    color: var(--danger);
}

.actions {
    display: flex;
    gap: .35rem;
}

.empty {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 1.4rem;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-head h2 {
    margin: 0;
}

.icon-btn {
    border: 0;
    background: var(--line);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--ink);
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: .9rem 1.1rem;
    border-radius: 12px;
    z-index: 100;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: var(--bg);
}

.login-art {
    padding: 6vw;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at 20% 20%, #2b271a, transparent 34%), var(--bg);
}

.login-art h1 {
    font-size: clamp(2.6rem, 5vw, 5.5rem);
    line-height: .93;
    letter-spacing: -.07em;
    max-width: 700px;
    margin: 2rem 0;
}

.login-art p {
    color: var(--muted);
}

.login-side {
    display: grid;
    place-items: center;
    background: var(--surface);
    border-radius: 28px 0 0 28px;
    padding: 2rem;
}

.login-card {
    width: min(410px, 100%);
}

.login-card h2 {
    font-size: 2rem;
    margin: .7rem 0;
}

.login-card form {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.login-card .btn {
    padding: 1rem;
}

.error {
    color: var(--danger);
    font-size: .86rem;
}

.hero {
    color: var(--ink);
    
    background: radial-gradient(circle at top right, #1a1608, transparent 60%), var(--bg);
    padding: 4rem 5vw;
    border-bottom: 1px solid var(--line);
}

.public-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.hero-inner {
    
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin: 1rem 0;
}

.hero .lead {
    color: var(--muted);
}

.queue-card {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 1.5rem;
    border-radius: 24px;
}

.queue-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--brand);
}

.public-content {
    max-width: 1200px;
    margin: -2rem auto 4rem;
    padding: 0 1rem;
}

.section {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.section h2 {
    margin-top: 0;
}

.people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.person {
    text-align: center;
    padding: 1rem;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface);
    margin: auto;
    display: grid;
    place-items: center;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
}

.gallery {
    display: flex;
    gap: 1rem;
    overflow: auto;
}

.gallery img {
    width: 280px;
    height: 190px;
    border-radius: 16px;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}
.gallery img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}
@media(max-width:800px) {
    .shell {
        display: block;
    }
    .sidebar {
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        z-index: 20;
        padding: .4rem;
        border-right: 0;
        border-top: 1px solid var(--line);
    }
    .sidebar>.brand,
    .sidebar>.muted {
        display: none;
    }
    .nav {
        margin: 0;
        grid-template-columns: repeat(4, 1fr);
    }
    .nav button {
        text-align: center;
        padding: .65rem .2rem;
        font-size: .7rem;
    }
    .content {
        padding: 1rem 1rem 5.5rem;
    }
    .stats,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .span-2 {
        grid-column: auto;
    }
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-art {
        display: none;
    }
    .login-side {
        border-radius: 0;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }
    .heading {
        align-items: start;
        flex-direction: column;
    }
    .topbar {
        padding: 0 1rem;
    }
}
.join-action {
    margin-top: 2rem;
}

.join-action .btn,
#joinForm .btn,
.queue-success-body .btn {
    width: 100%;
}

.queue-success-body {
    display: grid;
    gap: .85rem;
    text-align: center;
}

.queue-success-body strong {
    color: var(--brand);
    font-size: 4rem;
    line-height: 1;
}

.queue-success-body p {
    margin: 0 0 .35rem;
    color: var(--muted);
}

