/* =======================================================
   VIVIDCASE™ CORE CSS - MOBILE READY (FULL VERSION)
   ======================================================= */

/* 1. Ajuste do Logo Principal */
.brand img { 
    max-height: 65px !important; 
    width: auto;
    vertical-align: middle; 
}

/* 2. Rodapé Global */
.vivid-global-footer { 
    text-align: center; 
    padding: 80px 20px 60px !important; 
    margin-top: 100px !important; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    color: #888; 
    font-family: 'Instrument Sans', sans-serif !important; 
    display: block !important;
    position: relative !important;
    z-index: 9999 !important;
    clear: both !important;
}

.vivid-global-footer p { 
    margin: 0 !important; 
    padding: 0 !important;
    line-height: 1.6 !important; 
    font-size: 0.85rem !important;
    display: block !important;
}

.vivid-global-footer strong { color: #333; font-weight: 800; }
.vivid-global-footer .vivid-brand { color: #27ae60; font-weight: 800; }

/* 3. Botão Flutuante (DESATIVADO) */
.vivid-float-btn { display: none !important; }

/* 4. Estilos da Tela de Login e Auth Overlay */
.vivid-auth-overlay { position: fixed; inset: 0; background: #111; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vivid-auth-card { background: #1a1a1a; padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; width: 100%; border: 1px solid #333; }
.vivid-auth-logo { max-width: 180px; margin-bottom: 25px; }
.vivid-auth-input { width: 100%; padding: 15px; border-radius: 50px; border: 1px solid #333; background: #000; color: #fff; text-align: center; font-size: 1.1rem; margin-bottom: 15px; outline: none; }
.vivid-auth-btn { width: 100%; padding: 15px; background: #27ae60; color: #fff; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; text-transform: uppercase; }

/* 5. FIX GLOBAL PARA MENUS DESLIZANTES + ESTILO PADRÃO DE TABS */
.nav-tabs, .page-tabs { 
    display: inline-flex !important; 
    white-space: nowrap !important; 
    gap: 6px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 50px;
}

/* 6. MODAL DE APROVAÇÃO ESTÚDIO CIRCLE */
.circle-modal {
    display: none; position: fixed; inset: 0; 
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    z-index: 99999; align-items: center; justify-content: center; padding: 20px;
}

.circle-modal-card {
    background: #fff; width: 100%; max-width: 500px; 
    border-radius: 30px; padding: 40px; position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3); animation: slideUp 0.4s ease;
}

@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.circle-modal-header { text-align: center; margin-bottom: 30px; }
.circle-modal-header img { max-width: 140px; margin-bottom: 15px; }
.circle-modal-header h2 { font-family: 'Piazzolla', serif; font-size: 1.8rem; color: #3E2723; margin: 0; }

.payment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pay-opt {
    border: 2px solid #eee; padding: 15px 20px; border-radius: 15px;
    cursor: pointer; transition: 0.3s; position: relative; text-align: left;
}
.pay-opt:hover { border-color: #d35400; background: #fffaf7; }
.pay-opt.active { border-color: #27ae60; background: #f4faf6; }
.pay-opt strong { display: block; font-size: 1rem; color: #333; margin-bottom: 2px; }
.pay-opt span { font-size: 0.8rem; color: #777; font-weight: 500; }
.pay-opt .price { color: #27ae60; font-weight: 800; }

/* ÁREA DE DADOS PIX */
.pix-data-box {
    display: none; background: #fdfaf7; border: 1.5px dashed #d35400; 
    padding: 15px; border-radius: 12px; margin-bottom: 20px; text-align: left;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pix-data-box p { margin: 0; font-size: 0.8rem; color: #3E2723; line-height: 1.5; }
.pix-data-box strong { color: #d35400; }

.agreement-area { 
    margin: 15px 0; padding: 12px; background: #f9f9f9; border-radius: 10px;
    display: flex; gap: 10px; align-items: flex-start; text-align: left;
}
.agreement-area input { margin-top: 3px; cursor: pointer; }
.agreement-area label { font-size: 0.75rem; color: #666; line-height: 1.4; cursor: pointer; }

.btn-confirm {
    width: 100%; padding: 18px; background: #27ae60; color: #fff;
    border: none; border-radius: 50px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; transition: 0.3s;
}
.btn-confirm:disabled { background: #ccc; cursor: not-allowed; }
.btn-confirm:hover:not(:disabled) { background: #219653; transform: scale(1.02); }

.close-circle { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }

/* =======================================================
   7. LAYOUT BASE DOS WORKSPACES (HEADER + TABS)
   Regras genéricas compartilhadas entre WoodPrint, Carmencitas e Demo.
   Cada cliente pode fazer overrides no próprio arquivo.
   ======================================================= */

/* RESET LEVE PARA GARANTIR CONSISTÊNCIA BÁSICA */
body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.top-bar { 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: relative; 
    z-index: 10; 
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.brand img { 
    max-height: 40px;
}

.client-logo-box {
    display: flex;
    align-items: center;
    padding-left: 15px;
    border-left: 2px solid #eee;
    margin-left: 15px;
    height: 35px;
}

.client-logo {
    max-height: 100%;
    width: auto;
    display: block;
}

.nav-scroll-container { 
    width: 100%; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
    background: #fff;
}

.nav-scroll-container::-webkit-scrollbar { 
    display: none; 
}

.tab-btn { 
    display: inline-block;
    border: none; 
    background: transparent; 
    padding: 8px 16px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.7rem; 
    color: #777; 
    cursor: pointer; 
    text-decoration: none; 
    text-transform: uppercase; 
}

.tab-btn.active { 
    background: #fff; 
    color: #111; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
}

.content-frame { 
    width: 100%; 
    height: calc(100vh - 105px); 
    border: none; 
    display: block; 
    background: #FAF9F6; 
}

@media (min-width: 769px) {
    .top-bar { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        padding: 15px 40px; 
    }
    .header-main { 
        border-bottom: none; 
        padding: 0; 
    }
    .nav-scroll-container { 
        width: auto; 
        padding: 0; 
    }
    .content-frame { 
        height: calc(100vh - 75px); 
    }
    .brand img { 
        max-height: 45px; 
    }
}