/* ===== TELA DE LOGIN ===== */

.login-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #0f9ba8 0, #021b2b 55%, #000814 100%);
    font-family: var(--font-base);
    color: #f8fafc;
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 16px;
}

.login-card {
    background: rgba(6, 22, 36, 0.96);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 24px 20px 20px;
}

.login-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(21, 170, 191, 0.18);
    border: 1px solid rgba(21, 170, 191, 0.65);
    font-size: 11px;
    margin-bottom: 16px;
}

.login-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-subtitle {
    font-size: 13px;
    color: #cbd5f5;
    margin-bottom: 24px;
}

.login-actions {
    margin-bottom: 18px;
}

.btn-google {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-google:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.btn-google-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #4285f4;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.login-hint {
    font-size: 11px;
    color: #a5b4d4;
    margin-bottom: 12px;
}

.login-footer {
    font-size: 10px;
    color: #7e8bb8;
}

/* mobile ajuste */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 16px 16px;
    }

    .login-title {
        font-size: 22px;
    }
}

.perfil-form .form-group {
    margin-bottom: 12px;
}

.perfil-form label {
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.perfil-form input,
.perfil-form select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

.perfil-form input:focus,
.perfil-form select:focus {
    border-color: #22d3ee;
}

.btn-primary-full {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    border-radius: 999px;
    border: none;
    background: #0ea5e9;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.btn-primary-full:hover {
    filter: brightness(1.05);
}



:root {
    --cor-primaria: #0b7285;
    --cor-secundaria: #15aabf;
    --cor-fundo: #f5f7fb;
    --cor-texto: #222;
    --cor-card: #ffffff;
    --cor-borda: #dde1ea;
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.08);
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-full: 999px;
    --transition-fast: 0.2s ease;
    --sidebar-width: 250px;
    --footer-height: 56px;
    --topbar-height: 56px;
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
    font-family: var(--font-base);
    background: var(--cor-fundo);
    color: var(--cor-texto);
}

/* LAYOUT PRINCIPAL */

.app-root {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: var(--sidebar-width);
    background: #18212f;
    color: #f8f9fa;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: 10px;
}

.sidebar-title .barbearia-nome {
    font-weight: 600;
    font-size: 14px;
}

.sidebar-title .barbearia-sub {
    font-size: 11px;
    opacity: 0.8;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    color: #f8f9fa;
    text-decoration: none;
    font-size: 14px;
    position: relative;
}

.sidebar .menu-item::before {
    content: attr(data-icon);
    font-size: 16px;
}

.sidebar .menu-item:hover {
    background: rgba(255,255,255,0.08);
}

/* MAIN */

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.app-topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 5;
}

.icon-button {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* CONTEÚDO */

.app-content {
    padding: 12px;
    padding-bottom: calc(var(--footer-height) + 16px);
}

/* FOOTER NAV */

.app-footer-nav {
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid var(--cor-borda);
    padding: 0 8px;
    position: sticky;
    bottom: 0;
}

.footer-btn {
    flex: 1;
    margin: 0 4px;
    border-radius: var(--radius-full);
    padding: 8px 6px;
    border: 1px solid var(--cor-borda);
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-btn.primary {
    background: var(--cor-primaria);
    color: #ffffff;
    border-color: var(--cor-primaria);
}

/* PAGINAS */

.page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-section {
    background: var(--cor-card);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-soft);
}

.page-section h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.help-text {
    font-size: 13px;
    color: #555;
}

/* CARDS */

.cards-row {
    display: flex;
    gap: 8px;
}

.card {
    flex: 1;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 8px;
    border: 1px solid var(--cor-borda);
}

.card-label {
    font-size: 12px;
    opacity: 0.7;
}

.card-value {
    font-size: 20px;
    font-weight: 600;
}

/* LISTAS */

.list {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--cor-borda);
    overflow: hidden;
}

.list-item {
    display: grid;
    grid-template-columns: 40px 1.2fr 1.2fr 1.2fr 1fr 1.5fr;
    gap: 4px;
    padding: 6px 8px;
    font-size: 13px;
    align-items: center;
}

.list-item.header {
    background: #f1f3f6;
    font-weight: 600;
}

.list-striped .list-item:nth-child(even):not(.header) {
    background: #fafbff;
}

.actions {
    display: flex;
    gap: 4px;
}

/* CHIPS & BOTÕES */

.chip, .chip.secondary {
    border-radius: var(--radius-full);
    border: 1px solid var(--cor-borda);
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    background: #ffffff;
}

.chip.secondary {
    background: #f1f3f6;
}

/* FORM */

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: var(--radius-md);
    border: 1px solid var(--cor-borda);
    padding: 6px 8px;
    font-size: 14px;
    outline: none;
}

.form-group textarea {
    min-height: 70px;
}

.btn-primary-full {
    width: 100%;
    border-radius: var(--radius-full);
    border: none;
    padding: 10px;
    background: var(--cor-primaria);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* CHIPS DE SERVIÇO */

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip-select {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--cor-borda);
    background: #ffffff;
    font-size: 12px;
}

/* CHAT */

.chat-window {
    display: flex;
    flex-direction: column;
    height: 60vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--cor-borda);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    background: #f6f7fb;
}

.chat-message {
    margin-bottom: 6px;
    max-width: 80%;
}

.chat-message.me {
    margin-left: auto;
    text-align: right;
}

.chat-meta {
    font-size: 11px;
    opacity: 0.7;
}

.chat-text {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.chat-message.me .chat-text {
    background: var(--cor-primaria);
    color: #ffffff;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--cor-borda);
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 14px;
}

.chat-input button {
    border: none;
    background: var(--cor-primaria);
    color: #ffffff;
    padding: 0 16px;
    cursor: pointer;
}

/* PAINEL TV */

.painel-body {
    background: #050816;
    color: #ffffff;
    font-family: var(--font-base);
}

.painel-header {
    padding: 10px 16px;
    background: #111827;
}

.painel-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.painel-logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.painel-title {
    font-size: 20px;
    font-weight: 600;
}

.painel-sub {
    font-size: 12px;
    opacity: 0.7;
}

.painel-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.painel-card {
    background: #111827;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.painel-cliente {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.painel-servicos {
    font-size: 16px;
    opacity: 0.85;
}

.painel-info-row {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.painel-proximos .painel-list {
    list-style: none;
    padding: 0;
}

.painel-proximos li {
    padding: 8px 10px;
    background: #111827;
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    font-size: 14px;
}

/* MOBILE */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 10;
        transition: var(--transition-fast);
    }

    .sidebar.open {
        left: 0;
    }

    .list-item {
        grid-template-columns: 26px 1.4fr 1.4fr 1fr;
        grid-auto-rows: auto;
    }

    .list-item span:nth-child(4),
    .list-item span:nth-child(5),
    .list-item span:nth-child(6) {
        font-size: 11px;
    }

    .cards-row {
        flex-direction: column;
    }
}
