﻿/* ===== StudioThini — Tema visual compartilhado (Web + App) ===== */
/* Paleta baseada na logo: azul do anel, dourado dos clipes, marrom do letreiro, fundo rosado */

:root {
    --st-primaria: #1e6fb3;
    --st-primaria-hover: #175686;
    --st-acento: #e8a23b;
    --st-acento-hover: #cc8a28;
    --st-marca: #6b4226;
    --st-perigo: #c0392b;
    --st-texto: #2b2420;
    --st-texto-suave: #7a6f68;
    --st-borda: #e8ded6;
    --st-fundo: #fbf4ef;
    --st-cartao: #ffffff;
    --st-raio: 8px;
    --st-sombra: 0 1px 3px rgba(43, 36, 32, 0.08), 0 1px 2px rgba(43, 36, 32, 0.06);
}

/* ---------- Base ---------- */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--st-texto);
    background-color: var(--st-fundo);
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 1.65rem;
    margin-bottom: 1.25rem;
    color: var(--st-marca);
}

/* ---------- Área de conteúdo ---------- */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ---------- Barra lateral ---------- */
.sidebar {
    background: linear-gradient(180deg, var(--st-primaria) 0%, #123b57 100%);
}

    .sidebar .navbar-brand {
        font-weight: 700;
        letter-spacing: 0.01em;
    }

.nav-item .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--st-raio);
    margin: 0.1rem 0.6rem;
    padding: 0.55rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .nav-item .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .nav-item .nav-link.active {
        background-color: var(--st-acento);
        color: #2b2420;
        font-weight: 600;
    }

/* ---------- Barra superior ---------- */
.top-row {
    background-color: var(--st-cartao);
    border-bottom: 1px solid var(--st-borda);
}

/* ---------- Formulários ---------- */
.campo {
    margin-bottom: 1rem;
    max-width: 420px;
}

    .campo label {
        display: block;
        font-weight: 500;
        font-size: 0.875rem;
        color: var(--st-texto-suave);
        margin-bottom: 0.3rem;
    }

    .campo input[type="text"],
    .campo input[type="password"],
    .campo input[type="number"],
    .campo input[type="email"],
    .campo select,
    .campo textarea {
        width: 100%;
        padding: 0.5rem 0.7rem;
        border: 1px solid var(--st-borda);
        border-radius: var(--st-raio);
        font-size: 0.95rem;
        background-color: var(--st-cartao);
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .campo input:focus,
        .campo select:focus,
        .campo textarea:focus {
            outline: none;
            border-color: var(--st-primaria);
            box-shadow: 0 0 0 3px rgba(30, 111, 179, 0.15);
        }

        .campo input:disabled,
        .campo select:disabled {
            background-color: var(--st-fundo);
            color: var(--st-texto-suave);
        }

/* ---------- Botões ---------- */
button {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--st-raio);
    border: 1px solid var(--st-borda);
    background-color: var(--st-cartao);
    color: var(--st-texto);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

    button:hover:not(:disabled) {
        background-color: var(--st-fundo);
        border-color: var(--st-texto-suave);
    }

    button:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

    button[type="submit"] {
        background-color: var(--st-primaria);
        border-color: var(--st-primaria);
        color: #ffffff;
    }

        button[type="submit"]:hover:not(:disabled) {
            background-color: var(--st-primaria-hover);
            border-color: var(--st-primaria-hover);
        }

/* ---------- Tabelas ---------- */
.table {
    background-color: var(--st-cartao);
    border-radius: var(--st-raio);
    overflow: hidden;
    box-shadow: var(--st-sombra);
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead th {
        background-color: var(--st-fundo);
        color: var(--st-texto-suave);
        font-size: 0.8rem;
        font-weight: 600;
        border-bottom: 1px solid var(--st-borda);
        padding: 0.75rem 1rem;
    }

    .table tbody td {
        padding: 0.65rem 1rem;
        border-bottom: 1px solid var(--st-borda);
        vertical-align: middle;
    }

    .table tbody tr:last-child td {
        border-bottom: none;
    }

    .table tbody tr:hover {
        background-color: var(--st-fundo);
    }

/* ---------- Mensagens ---------- */
.erro {
    background-color: #fbeae7;
    border: 1px solid #eec3ba;
    color: var(--st-perigo);
    border-radius: var(--st-raio);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
}

    .erro li {
        margin: 0;
    }

.text-success {
    display: inline-block;
    background-color: #eaf3ea;
    border: 1px solid #c3ddc4;
    color: #2f6b30;
    border-radius: var(--st-raio);
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
}

/* ---------- Carregando ---------- */
.carregando {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--st-texto-suave);
    padding: 1rem 0;
}

    .carregando::before {
        content: "";
        width: 18px;
        height: 18px;
        border: 2px solid var(--st-borda);
        border-top-color: var(--st-primaria);
        border-radius: 50%;
        animation: st-girar 0.6s linear infinite;
    }

@keyframes st-girar {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Botão de perigo ---------- */
button.btn-perigo {
    background-color: #fdf0ee;
    border-color: #f0c4bd;
    color: var(--st-perigo);
}

    button.btn-perigo:hover:not(:disabled) {
        background-color: var(--st-perigo);
        border-color: var(--st-perigo);
        color: #ffffff;
    }

/* ---------- Busca e paginação ---------- */
    .barra-consulta {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
        max-width: 420px;
    }

    .barra-consulta input {
        flex: 1;
        padding: 0.5rem 0.7rem;
        border: 1px solid var(--st-borda);
        border-radius: var(--st-raio);
        font-size: 0.95rem;
    }

    .paginacao {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 1rem 0;
        color: var(--st-texto-suave);
        font-size: 0.9rem;
    }
    /* ---------- Marca na barra lateral ---------- */
    .navbar-brand img.logo-marca {
        height: 42px;
        width: auto;
        filter: brightness(0) invert(1);
    }

    /* ---------- Itens de menu mais compactos ---------- */
    .nav-item .nav-link {
        font-size: 0.82rem;
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ---------- Home ---------- */
    .hero-home {
        position: relative;
        border-radius: var(--st-raio);
        overflow: hidden;
        background-color: var(--st-cartao);
        box-shadow: var(--st-sombra);
        padding: 3rem 2rem;
        margin-bottom: 2rem;
        background-image: url('../images/logo-circulo.png');
        background-repeat: no-repeat;
        background-position: right -60px center;
        background-size: 340px;
    }

        .hero-home::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, var(--st-cartao) 45%, rgba(255, 255, 255, 0.55) 100%);
        }

    .hero-conteudo {
        position: relative;
        z-index: 1;
        max-width: 560px;
    }

    .hero-home h1 {
        color: var(--st-marca);
        font-size: 2rem;
    }

    .hero-subtitulo {
        color: var(--st-texto-suave);
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .cartao-status {
        display: inline-flex;
        align-items: center;
        padding: 0.6rem 1rem;
        border-radius: var(--st-raio);
        font-weight: 500;
    }

    .cartao-status-aberto {
        background-color: #eaf3ea;
        color: #2f6b30;
        border: 1px solid #c3ddc4;
    }

    .cartao-status-fechado {
        background-color: #fdf0ee;
        color: var(--st-perigo);
        border: 1px solid #f0c4bd;
    }

    .cartao-status a {
        margin-left: 0.75rem;
        font-weight: 600;
    }

    .atalhos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .atalho-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        padding: 1.5rem 1rem;
        background-color: var(--st-cartao);
        border: 1px solid var(--st-borda);
        border-radius: var(--st-raio);
        text-decoration: none;
        color: var(--st-texto);
        font-weight: 500;
        box-shadow: var(--st-sombra);
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

        .atalho-card:hover {
            transform: translateY(-2px);
            border-color: var(--st-primaria);
            color: var(--st-primaria);
        }

        .atalho-card span[class^="bi-"] {
            font-size: 1.8rem;
            color: var(--st-primaria);
        }
    /* ---------- Barra do topo ---------- */
    .top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .top-row-esquerda,
    .top-row-direita {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .top-row-direita {
        justify-content: flex-end;
    }

    .top-row-centro {
        flex: 1;
        text-align: center;
    }

    .usuario-logado {
        color: var(--st-texto-suave);
        font-weight: 500;
    }

    .versao-software {
        color: var(--st-texto-suave);
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }

    .btn-sair {
        background-color: transparent;
        border: 1px solid var(--st-borda);
        color: var(--st-texto-suave);
        font-weight: 500;
        padding: 0.4rem 0.9rem;
        border-radius: var(--st-raio);
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

        .btn-sair:hover {
            background-color: var(--st-primaria);
            border-color: var(--st-primaria);
            color: #ffffff;
        }

        .imagem-produto-preview {
            max-width: 240px;
            max-height: 240px;
            object-fit: cover;
            border-radius: var(--st-raio);
            border: 1px solid var(--st-borda);
            margin-bottom: 0.75rem;
        }

        .imagem-produto-miniatura {
            width: 42px;
            height: 42px;
            object-fit: cover;
            border-radius: 6px;
            border: 1px solid var(--st-borda);
        }

        /* ---------- Produtos: categoria/subcategoria rápidas, descrição, foto ---------- */
        .campo-linha {
            display: flex;
            gap: 0.5rem;
            align-items: stretch;
            max-width: 560px;
        }

            .campo-linha select {
                flex: 1;
                min-width: 0;
            }

            .campo-linha button {
                flex: none;
                white-space: nowrap;
            }

        .campo-texto-longo {
            width: 100%;
            max-width: 437px;
            padding: 0.6rem 0.75rem;
            border: 1px solid #ddd0c7;
            border-radius: 8px;
            background-color: #ffffff;
            font-family: inherit;
            font-size: 0.95rem;
            line-height: 1.45;
            resize: vertical;
        }

            .campo-texto-longo:focus {
                outline: none;
                border-color: #1e6fb3;
                box-shadow: 0 0 0 3px rgba(30, 111, 179, 0.15);
            }

        .contador-caracteres {
            display: block;
            margin-top: 0.25rem;
            color: #7a6f68;
            font-size: 0.78rem;
        }

        .foto-nome {
            color: #7a6f68;
            font-size: 0.85rem;
            margin: 0.25rem 0 0.5rem;
        }

        .aviso-tela {
            max-width: 760px;
            margin-bottom: 1rem;
            padding: 0.65rem 1rem;
            background-color: #fff6e5;
            border: 1px solid #f0d9a8;
            border-radius: 8px;
            color: #8a5a00;
        }

        /* Janelinha "Nova categoria / Nova subcategoria" */
        .dialogo-fundo {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            background-color: rgba(43, 36, 32, 0.45);
        }

        .dialogo-caixa {
            width: 100%;
            max-width: 420px;
            padding: 1.5rem;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        }

            .dialogo-caixa h3 {
                margin: 0 0 0.75rem;
                color: #6b4226;
                font-size: 1.2rem;
                font-weight: 600;
            }

        .dialogo-contexto {
            margin: 0 0 1rem;
            color: #7a6f68;
            font-size: 0.9rem;
        }

        .dialogo-acoes {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .dica-campo {
            display: block;
            max-width: 437px;
            margin-top: 0.25rem;
            color: #7a6f68;
            font-size: 0.78rem;
        }
/* ---------- Pedidos da Loja (gestão pela equipe) ---------- */
.filtro-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .filtro-status button.ativo {
        background-color: #1e6fb3;
        border-color: #1e6fb3;
        color: #ffffff;
    }

.filtro-contagem {
    display: inline-block;
    min-width: 1.4rem;
    margin-left: 0.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background-color: rgba(107, 66, 38, 0.12);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

.filtro-status button.ativo .filtro-contagem {
    background-color: rgba(255, 255, 255, 0.25);
}

.selo-status {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.selo-pendente {
    background-color: #fff6e5;
    color: #8a5a00;
}

.selo-confirmado {
    background-color: #e6f0f9;
    color: #175686;
}

.selo-enviado {
    background-color: #ece8f8;
    color: #4b3b9a;
}

.selo-entregue {
    background-color: #eaf3ea;
    color: #2f6b30;
}

.selo-cancelado {
    background-color: #f1ecea;
    color: #7a6f68;
}

.pedido-cabecalho {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
}

    .pedido-cabecalho h2 {
        margin: 0;
        color: #6b4226;
        font-size: 1.5rem;
        font-weight: 600;
    }

.pedido-data {
    margin: 0.25rem 0 1rem;
    color: #7a6f68;
}

.pedido-grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin-bottom: 1rem;
}

.pedido-bloco {
    max-width: 900px;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e8ded6;
    border-radius: 12px;
}

.pedido-grade .pedido-bloco {
    margin-bottom: 0;
}

.pedido-bloco h3 {
    margin: 0 0 0.6rem;
    color: #6b4226;
    font-size: 1rem;
    font-weight: 600;
}

.pedido-bloco p {
    margin: 0 0 0.35rem;
}

.pedido-observacoes {
    color: #7a6f68;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.pedido-total {
    margin: 0.75rem 0 0;
    text-align: right;
    font-size: 1.1rem;
}

.pedido-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 900px;
}

.pedido-confirmacao {
    max-width: 900px;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #fbeae7;
    border: 1px solid #eec3ba;
    border-radius: 12px;
}

.pedido-nota {
    color: #7a6f68;
}

.sucesso-tela {
    max-width: 900px;
    margin-bottom: 1rem;
    padding: 0.65rem 1rem;
    background-color: #eaf3ea;
    border: 1px solid #c3ddc4;
    border-radius: 8px;
    color: #2f6b30;
}

button.btn-destaque {
    background-color: #1e6fb3;
    border-color: #1e6fb3;
    color: #ffffff;
}

    button.btn-destaque:hover:not(:disabled) {
        background-color: #175686;
        border-color: #175686;
    }

/* ---------- Pedidos: selo no menu, aviso na Home e botão do WhatsApp ---------- */
.selo-menu {
    display: inline-block;
    min-width: 1.4rem;
    margin-left: 0.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background-color: #e8a23b;
    color: #2b2420;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4rem;
    text-align: center;
}

.aviso-pedidos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    max-width: 900px;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background-color: #fff6e5;
    border: 1px solid #f0d9a8;
    border-radius: 12px;
    color: #8a5a00;
    font-weight: 500;
}

    .aviso-pedidos [class^="bi-"] {
        font-size: 1.2rem;
    }

.aviso-pedidos-link {
    margin-left: auto;
    color: #1e6fb3;
    font-weight: 600;
    text-decoration: none;
}

a.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: #17894a;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}

    a.btn-whatsapp:hover {
        background-color: #126f3c;
        color: #ffffff;
    }

/* ---------- Recebimentos online e reembolso ---------- */
.recebimentos-nota {
    max-width: 760px;
    margin-bottom: 1.25rem;
    color: #7a6f68;
    font-size: 0.9rem;
}

.cartoes-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin-bottom: 1.25rem;
}

.cartao-resumo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.1rem;
    background-color: #ffffff;
    border: 1px solid #e8ded6;
    border-radius: 12px;
}

.cartao-resumo-rotulo {
    color: #7a6f68;
    font-size: 0.82rem;
    font-weight: 500;
}

.cartao-resumo strong {
    color: #6b4226;
    font-size: 1.4rem;
}

.cartao-resumo small {
    color: #7a6f68;
}

.cartao-resumo-alerta {
    background-color: #fbeae7;
    border-color: #eec3ba;
}

    .cartao-resumo-alerta strong,
    .cartao-resumo-alerta .cartao-resumo-rotulo {
        color: #c0392b;
    }

.filtro-status button.filtro-alerta .filtro-contagem {
    background-color: #c0392b;
    color: #ffffff;
}

.reembolso-confirmacao {
    margin: 0 0 0.4rem;
    color: #8a5a00;
    font-size: 0.85rem;
}

/* Selos de pagamento */
.selo-pag-aprovado {
    background-color: #eaf3ea;
    color: #2f6b30;
}

.selo-pag-pendente {
    background-color: #fff6e5;
    color: #8a5a00;
}

.selo-pag-expirado {
    background-color: #fbeae7;
    color: #c0392b;
}

.selo-pag-cancelado {
    background-color: #f1ecea;
    color: #7a6f68;
}

.selo-pag-reembolsado {
    background-color: #e6f0f9;
    color: #175686;
}

/* Alertas de reembolso */
.aviso-reembolso {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    max-width: 900px;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background-color: #fbeae7;
    border: 1px solid #eec3ba;
    border-radius: 12px;
    color: #8a1f13;
}

    .aviso-reembolso [class^="bi-"] {
        font-size: 1.3rem;
    }

    .aviso-reembolso p {
        margin: 0.25rem 0 0;
    }

    .aviso-reembolso a {
        color: #1e6fb3;
        font-weight: 600;
    }

.aviso-reembolso-inline {
    color: #c0392b;
    font-weight: 600;
}

.selo-menu-alerta {
    background-color: #c0392b;
    color: #ffffff;
}

.aviso-pedidos-alerta {
    background-color: #fbeae7;
    border-color: #eec3ba;
    color: #8a1f13;
}

/* ---------- Cadastro com CEP e WhatsApp na lista ---------- */
.dica-campo-erro {
    color: #c0392b;
}

.secao-formulario {
    margin: 1.25rem 0 0.5rem;
    color: #6b4226;
    font-size: 1.05rem;
    font-weight: 600;
}

    .secao-formulario small {
        color: #7a6f68;
        font-weight: 400;
    }

.endereco-antigo {
    max-width: 560px;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.9rem;
    background-color: #fff6e5;
    border: 1px solid #f0d9a8;
    border-radius: 8px;
    color: #8a5a00;
    font-size: 0.9rem;
}

.link-whatsapp-tabela {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    color: #17894a;
    font-size: 1.1rem;
    text-decoration: none;
}

    .link-whatsapp-tabela:hover {
        color: #126f3c;
    }