/**
 * Provadorshow - Estilos Gerais (Porta 8107)
 * Tema: elegante / provador virtual
 */

/* === RESET E BASE === */
:root {
    --pv-primary: #7c3aed;
    --pv-primary-dark: #6d28d9;
    --pv-bg: #f7f7f9;
    --pv-surface: #ffffff;
    --pv-text: #1f2937;
    --pv-muted: #6b7280;
    --pv-border: #e5e7eb;
    --pv-radius: 14px;
}

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

html, body {
    height: 100%;
    background-color: var(--pv-bg);
    color: var(--pv-text);
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: var(--pv-primary);
    text-decoration: none;
}

/* === LOGIN === */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f3ff 0%, var(--pv-bg) 100%);
}

.pv-login-card {
    background: var(--pv-surface);
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.pv-login-card img,
.pv-login-logo {
    max-height: 72px;
    width: auto;
    margin-bottom: 16px;
}

.pv-login-card h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pv-login-card .pv-subtitle {
    color: var(--pv-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* === LAYOUT APP === */
.pv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--pv-surface);
    border-bottom: 1px solid var(--pv-border);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pv-topbar .pv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.pv-topbar .pv-brand img {
    height: 36px;
    width: auto;
}

.pv-topbar .pv-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pv-muted);
    font-size: 0.9rem;
}

.pv-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* === HOME === */
.pv-home {
    display: flex;
    justify-content: center;
    padding: 48px 16px;
}

.pv-card {
    background: var(--pv-surface);
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 520px;
}

.pv-card-center {
    margin: 0 auto;
}

.pv-header h1 {
    margin-bottom: 4px;
}

.pv-home-logo {
    max-height: 80px;
    margin-bottom: 16px;
}

.pv-card h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

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

/* === BOTÕES === */
.pv-btn {
    display: inline-block;
    background: var(--pv-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pv-btn:hover {
    background: var(--pv-primary-dark);
}

.pv-btn-outline {
    background: transparent;
    color: var(--pv-primary);
    border: 1px solid var(--pv-primary);
}

.pv-btn-outline:hover {
    background: var(--pv-primary);
    color: #fff;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* SweetAlert2 customização para tema Provadorshow */
.swal2-popup {
    border-radius: var(--pv-radius) !important;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.swal2-confirm {
    background: var(--pv-primary) !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
}

.swal2-confirm:hover {
    background: var(--pv-primary-dark) !important;
}

.swal2-cancel {
    background: transparent !important;
    color: var(--pv-muted) !important;
    border: 1px solid var(--pv-border) !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
}

.swal2-cancel:hover {
    background: var(--pv-bg) !important;
    color: var(--pv-text) !important;
}

/* === MODAIS NEGÓCIO-CONTA (Negócio Protagonista) === */
.modal-negocio-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-negocio-content {
    background: var(--pv-surface);
    border-radius: var(--pv-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-negocio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pv-border);
}

.modal-negocio-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pv-text);
    margin: 0;
}

.modal-negocio-body {
    padding: 24px;
    color: var(--pv-text);
    line-height: 1.6;
}

.modal-negocio-body p {
    margin-bottom: 12px;
}

.modal-negocio-body p:last-child {
    margin-bottom: 0;
}

.modal-negocio-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pv-border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--pv-surface);
    color: var(--pv-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.modal-negocio-select:focus {
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.modal-negocio-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--pv-border);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-negocio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.modal-negocio-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-negocio-btn-confirmar {
    background: var(--pv-primary);
    color: #fff;
}

.modal-negocio-btn-confirmar:hover:not(:disabled) {
    background: var(--pv-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.modal-negocio-btn-cancelar {
    background: transparent;
    color: var(--pv-muted);
    border: 1px solid var(--pv-border);
}

.modal-negocio-btn-cancelar:hover {
    background: var(--pv-bg);
    color: var(--pv-text);
    border-color: var(--pv-muted);
}

.modal-negocio-btn-outline {
    background: transparent;
    color: var(--pv-primary);
    border: 1px solid var(--pv-primary);
}

.modal-negocio-btn-outline:hover {
    background: var(--pv-primary);
    color: #fff;
}

