﻿/* =========================================================================
   InkStudioo — Tema partilhado (ink-theme.css)
   Fonte única de verdade para variáveis de marca, utilitários e componentes
   que antes viviam duplicados em blocos <style> por página.
   Carregado a seguir ao site.css em _Layout e _LayoutPublic.
   ========================================================================= */

:root {
    /* Marca */
    --ink-accent: #8b5cf6;
    --ink-accent-strong: #7c3aed;
    --ink-accent-deep: #6d28d9;
    --ink-accent-text: #a78bfa;
    --ink-accent-soft: #f5f3ff;
    --ink-accent-border: #ede9fe;
    --ink-accent-glow: rgba(139, 92, 246, 0.35);
    /* Neutros (escala slate) */
    --ink-slate-900: #0f172a;
    --ink-slate-700: #334155;
    --ink-slate-600: #475569;
    --ink-slate-500: #64748b;
    --ink-slate-400: #94a3b8;
    --ink-slate-200: #e2e8f0;
    --ink-slate-100: #f1f5f9;
    --ink-slate-50: #f8fafc;
    /* Base */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --bg-global: #f6f8fa;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-global);
}

/* ===== Tipografia utilitária ===== */
.fw-black {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.03em;
}

.tracking-wider {
    letter-spacing: 0.06em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-normal {
    line-height: 1.4;
}

/* ===== Sombras ===== */
.shadow-premium {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 12px -3px rgba(0, 0, 0, 0.02) !important;
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ===== Botões de marca ===== */
.btn-ink {
    background: var(--ink-accent);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 18px var(--ink-accent-glow);
    transition: all 0.2s ease;
}

    .btn-ink:hover, .btn-ink:focus {
        background: var(--ink-accent-strong);
        color: #ffffff;
        transform: translateY(-1px);
    }

.btn-outline-ink {
    background: #ffffff;
    border: 1px solid var(--ink-slate-200);
    color: var(--ink-slate-600);
    font-weight: 600;
    transition: all 0.2s ease;
}

    .btn-outline-ink:hover, .btn-outline-ink:focus,
    .btn-check:checked + .btn-outline-ink {
        background: var(--ink-accent-soft);
        border-color: var(--ink-accent);
        color: var(--ink-accent-deep);
    }

/* ===== Formulários (acento de marca em vez do azul default do Bootstrap) ===== */
.form-check-input:checked {
    background-color: var(--ink-accent);
    border-color: var(--ink-accent);
}

.form-check-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--ink-accent-text);
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.15);
}

/* ===== Marca (lockup da navbar: gota + wordmark) ===== */
.brand-oo {
    color: var(--ink-accent-strong);
}

/* ===== Cabeçalho de página / painel ===== */
.header-panel {
    background: #ffffff;
}

.btn-custom-profile {
    background-color: var(--ink-accent-soft);
    color: var(--ink-accent-deep);
    border: 1px solid var(--ink-accent-border);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-custom-profile:hover, .btn-custom-profile:focus {
        background-color: var(--ink-accent);
        border-color: var(--ink-accent);
        color: #ffffff;
        box-shadow: 0 6px 18px var(--ink-accent-glow);
        transform: translateY(-1px);
    }

/* ===== Badges ===== */
.badge-status-active {
    background-color: #e6f4ea;
    color: #137333;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.badge-speciality {
    background-color: var(--ink-accent-soft);
    color: var(--ink-accent-deep);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-ink {
    background-color: var(--ink-accent);
    color: #ffffff;
}

/* ===== Linhas de informação ===== */
.info-row {
    padding: 0.25rem 0;
}

/* ===== Icon boxes ===== */
.icon-box {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Acento de marca (substitui o antigo arco-íris purple/teal/blue/indigo) */
.bg-ink-subtle {
    background-color: var(--ink-accent-soft);
}

.text-ink {
    color: var(--ink-accent-strong);
}

.bg-slate-subtle {
    background-color: var(--ink-slate-100);
}

.text-slate {
    color: var(--ink-slate-600);
}

/* ===== Cards de ação (dashboards) ===== */
.btn-action-premium,
.btn-action-compact {
    background-color: #ffffff;
    border: 1px solid var(--ink-slate-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

    .btn-action-premium:hover,
    .btn-action-compact:hover {
        background-color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    }

        .btn-action-premium:hover .animate-icon,
        .btn-action-compact:hover .animate-icon {
            transform: scale(1.08);
        }

        .btn-action-premium:hover .arrow-icon,
        .btn-action-compact:hover .arrow-icon {
            color: var(--ink-slate-900) !important;
            transform: translateX(3px);
        }

.arrow-icon {
    transition: all 0.2s ease;
}

/* Borda lateral de acento dos cards de ação */
.border-ink {
    border-left: 4px solid var(--ink-accent) !important;
}

    .border-ink:hover {
        border-color: var(--ink-accent) !important;
    }

/* Cards de definições (borda neutra completa, acento no hover) */
.settings-card {
    border: 1px solid var(--ink-slate-200) !important;
}

    .settings-card:hover {
        border-color: var(--ink-accent) !important;
        background-color: var(--ink-accent-soft);
    }

/* ===== Botão de definições (escuro) ===== */
.btn-settings-custom {
    background-color: var(--ink-slate-900);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s ease;
}

    .btn-settings-custom:hover {
        background-color: #000000;
        color: #ffffff;
        transform: translateY(-1px);
    }

/* ===== Redes sociais ===== */
.btn-social {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-slate-50);
    border: 1px solid var(--ink-slate-100);
    color: var(--ink-slate-500);
    transition: all 0.2s ease;
}

    .btn-social:hover {
        transform: scale(1.05);
    }

.btn-instagram:hover {
    background: #fdf2f8;
    color: #db2777;
    border-color: #fbcfe8;
}

.btn-tiktok:hover {
    background: #f4f4f5;
    color: #000000;
    border-color: #e4e4e7;
}

.btn-facebook:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ===== Tabelas de listagem ===== */
.table-th-label {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.avatar-initials {
    width: 38px;
    height: 38px;
    background: var(--ink-accent-border);
    color: var(--ink-accent-deep);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Animações ===== */
.pulse-element {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pulse {
    animation: inkPulse 2s infinite ease-in-out;
}

@keyframes inkPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* =========================================================================
   Extensões partilhadas — estilos que viviam duplicados nos <style> de
   Proposal/*, ScheduledSessions/*, listagens e formulários.
   ========================================================================= */

/* ===== Acento de marca — utilitários adicionais ===== */
.bg-ink {
    background-color: var(--ink-accent) !important;
}

.border-ink-accent {
    border-color: var(--ink-accent) !important;
}

.border-ink-subtle {
    border-color: var(--ink-accent-border) !important;
}

/* ===== Tipografia / utilitários ===== */
.text-xxs {
    font-size: 0.68rem;
}

.small-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

.text-project-title {
    font-size: 0.95rem;
}

.tracking-wide {
    letter-spacing: 0.02em;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.border-dashed {
    border-style: dashed !important;
}

/* ===== Sombras adicionais ===== */
.shadow-inner-custom {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
}

.shadow-inner-sm {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.shadow-xs {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* ===== Formulários custom (inputs "clean" dos formulários de negócio) ===== */
.form-control-custom, .form-select-custom, .custom-input {
    border: 1px solid var(--ink-slate-200);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

    .form-control-custom:focus, .form-select-custom:focus, .custom-input:focus {
        border-color: var(--ink-accent-text);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
        color: var(--ink-slate-900);
    }

.border-custom {
    border: 1px solid var(--ink-slate-200);
    border-radius: 10px 0 0 10px;
}

.input-group-text {
    border: 1px solid var(--ink-slate-200);
    border-radius: 8px;
    color: var(--ink-slate-500);
}

/* Caixa com switch (formulários de proposta) */
.card-switch-box {
    background: #ffffff;
    border-color: var(--ink-slate-200);
}

    .card-switch-box:has(.custom-switch-input:checked) {
        border-color: var(--ink-accent-text);
        background: var(--ink-accent-soft);
    }

.custom-switch-input {
    width: 2.5em !important;
    height: 1.25em !important;
    margin-left: -3em !important;
    cursor: pointer;
}

    .custom-switch-input:checked {
        background-color: var(--ink-accent);
        border-color: var(--ink-accent);
    }

/* ===== Tabelas de listagem ===== */
.table-custom {
    border-collapse: separate;
}

    .table-custom thead {
        background-color: var(--ink-slate-50);
        border-bottom: 1px solid #edf2f7;
    }

    .table-custom tbody tr {
        border-bottom: 1px solid var(--ink-slate-100);
        transition: background-color 0.15s ease;
    }

        .table-custom tbody tr:hover {
            background-color: var(--ink-slate-50);
        }

.small-th {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-slate-500) !important;
}

.bg-empty-state {
    background-color: #ffffff;
}

.table-nowrap td {
    white-space: nowrap;
}

    .table-nowrap td.text-wrap {
        white-space: normal;
    }

.fs-7 {
    font-size: 0.825rem !important;
}

.hover-ink:hover {
    color: var(--ink-accent-strong) !important;
}

.hover-dark-text:hover {
    color: #000000 !important;
}

.hover-dark:hover {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-color: #212529 !important;
}

.transition-row {
    transition: background-color 0.15s ease-in-out;
}

    .transition-row:hover {
        background-color: rgba(248, 249, 250, 0.8) !important;
    }

.pagination .page-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--ink-slate-900) !important;
    border-color: var(--ink-slate-900) !important;
    color: #ffffff;
}

/* ===== Badges de estado ===== */
.badge-custom {
    padding: 0.45em 0.75em;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
}

.badge-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* Paleta semântica dos badges (estados verdadeiros — não migrar para o acento) */
.bg-warning-subtle {
    background-color: #fef3c7 !important;
}

.text-warning-dark {
    color: #d97706 !important;
    border-color: #fde68a !important;
}

.bg-info-subtle {
    background-color: #e0f2fe !important;
}

.text-info-dark {
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

.bg-success-subtle {
    background-color: #dcfce7 !important;
}

.text-success-dark {
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

.bg-danger-subtle {
    background-color: #fee2e2 !important;
}

.text-danger-dark {
    color: #b91c1c !important;
    border-color: #fecaca !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   Compatibilidade com as classes -subtle / -emphasis do Bootstrap 5.3

   As vistas usam-nas (bg-warning-subtle, text-warning-emphasis, border-*-subtle),
   mas a app corre em Bootstrap 5.1, onde NÃO existem. O efeito era o badge ficar
   quase invisível: sem regra para text-*-emphasis, valia o `color:#fff` do .badge,
   ou seja texto branco sobre fundo pastel.

   As cores seguem a paleta já usada acima (fundos 100, textos 800) em vez dos
   valores do Bootstrap, para os badges ficarem coerentes com o resto do tema.
   ────────────────────────────────────────────────────────────────────────── */

/* Fundos que ainda faltavam */
.bg-primary-subtle {
    background-color: #ede9fe !important;
}

.bg-secondary-subtle {
    background-color: #f1f5f9 !important;
}

.bg-dark-subtle {
    background-color: #e2e8f0 !important;
}

.bg-light-subtle {
    background-color: #f8fafc !important;
}

/* Texto: tom escuro o suficiente para ler sobre os fundos pastel acima */
.text-primary-emphasis {
    color: #5b21b6 !important;
}

.text-secondary-emphasis {
    color: #334155 !important;
}

.text-success-emphasis {
    color: #166534 !important;
}

.text-danger-emphasis {
    color: #991b1b !important;
}

.text-warning-emphasis {
    color: #92400e !important;
}

.text-info-emphasis {
    color: #075985 !important;
}

.text-dark-emphasis {
    color: #1e293b !important;
}

.text-light-emphasis {
    color: #475569 !important;
}

/* Contornos */
.border-primary-subtle {
    border-color: #ddd6fe !important;
}

.border-secondary-subtle {
    border-color: #e2e8f0 !important;
}

.border-success-subtle {
    border-color: #bbf7d0 !important;
}

.border-danger-subtle {
    border-color: #fecaca !important;
}

.border-warning-subtle {
    border-color: #fde68a !important;
}

.border-info-subtle {
    border-color: #bae6fd !important;
}

.border-dark-subtle {
    border-color: #cbd5e1 !important;
}

.border-light-subtle {
    border-color: #e2e8f0 !important;
}

/* Muitos badges usam as classes simples (text-warning, text-info...), que no
   Bootstrap existem mas são as cores puras e vivas (#ffc107, #0dcaf0) — ilegíveis
   sobre um fundo pastel. Dentro de um badge, escurece-as para o mesmo tom dos
   -emphasis. Fora do badge as cores originais mantêm-se intactas. */
.badge.text-primary {
    color: #5b21b6 !important;
}

.badge.text-secondary {
    color: #334155 !important;
}

.badge.text-success {
    color: #166534 !important;
}

.badge.text-danger {
    color: #991b1b !important;
}

.badge.text-warning {
    color: #92400e !important;
}

.badge.text-info {
    color: #075985 !important;
}

/* Estados de sessão (nomes devolvidos por ScheduleStatusExtensions.GetCssClass) */
.status-approved {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

.status-pending {
    background-color: #fff7ed;
    color: #9a3412;
    border: 1px solid #ffedd5;
}

.status-awaiting {
    background-color: #f0f9ff;
    color: #075985;
    border: 1px solid #e0f2fe;
}

.status-cancelled {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.status-default {
    background-color: var(--ink-slate-50);
    color: var(--ink-slate-600);
    border: 1px solid var(--ink-slate-200);
}

/* ===== Botões de ação de tabela (texto) ===== */
.btn-action-table {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action-success {
    background-color: #dcfce7;
    color: #166534;
}

    .btn-action-success:hover {
        background-color: #bbf7d0;
        color: #14532d;
    }

.btn-action-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fef3c7;
}

    .btn-action-warning:hover {
        background-color: #fef3c7;
        color: #78350f;
    }

.btn-action-danger {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.4rem 0.55rem;
}

    .btn-action-danger:hover {
        background-color: #fecaca;
        color: #7f1d1d;
    }

.btn-action-secondary {
    background-color: var(--ink-slate-100);
    color: var(--ink-slate-700);
}

    .btn-action-secondary:hover {
        background-color: var(--ink-slate-200);
        color: var(--ink-slate-900);
    }

.btn-action-ink {
    background-color: var(--ink-accent-soft);
    color: var(--ink-accent-deep);
}

    .btn-action-ink:hover {
        background-color: var(--ink-accent-border);
        color: var(--ink-accent-deep);
    }

/* ===== Botões de ação de tabela (ícone 32px) ===== */
.btn-icon-table {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    background: #ffffff;
    border: 1px solid var(--ink-slate-200);
}

    .btn-icon-table.btn-view {
        color: var(--ink-slate-600);
    }

        .btn-icon-table.btn-view:hover {
            background: var(--ink-slate-100);
            color: var(--ink-slate-900);
        }

    .btn-icon-table.btn-approve {
        color: #10b981;
    }

        .btn-icon-table.btn-approve:hover {
            background: #ecfdf5;
            border-color: #a7f3d0;
        }

    .btn-icon-table.btn-reschedule {
        color: var(--ink-accent);
    }

        .btn-icon-table.btn-reschedule:hover {
            background: var(--ink-accent-soft);
            border-color: var(--ink-accent-border);
        }

    .btn-icon-table.btn-reject {
        color: #ef4444;
    }

        .btn-icon-table.btn-reject:hover {
            background: #fef2f2;
            border-color: #fecaca;
        }

/* ===== Botões CTA partilhados ===== */
.btn-save-premium {
    background-color: var(--ink-slate-900);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-save-premium:hover {
        background-color: #000000;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12);
    }

/* Amarelo/verde de ação: semânticos (pendente de assinatura / assinar) */
.btn-warning-action {
    background-color: #ffc107;
    color: #1e293b;
    border: none;
    transition: all 0.2s ease;
}

    .btn-warning-action:hover {
        background-color: #e0a800;
        color: #0f172a;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
    }

.btn-success-action {
    background-color: #10b981;
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.5rem;
    transition: all 0.2s ease;
}

    .btn-success-action:hover {
        background-color: #059669;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    }

/* ===== Ícones de métrica (KPI) ===== */
.icon-shape {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ===== Alertas custom ===== */
.alert-custom {
    border: none;
    color: #1e293b;
}

.alert-success-custom {
    background-color: #dcfce7;
    border-left: 4px solid #22c55e;
}

.alert-danger-custom {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
}

.alert-warning-custom {
    background-color: #fef3c7;
    color: #78350f;
}

.alert-ink-custom {
    background-color: var(--ink-accent-soft);
    border-left: 4px solid var(--ink-accent);
}

.text-danger-custom {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== Páginas legais (Privacy / Terms / Cookies / DPA) ===== */
.legal-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
}

.glass-card-legal {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.section-title {
    font-size: 1.2rem;
    color: #212529;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.subsection-title {
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.legal-text, .legal-list li {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.65;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

.legal-table {
    font-size: 0.9rem;
    color: #555555;
}

    .legal-table th {
        font-weight: 600;
        color: #495057;
    }

.alert-custom-legal {
    background-color: rgba(33, 37, 41, 0.04);
    border-left: 3px solid #212529;
    color: #495057;
    font-size: 0.9rem;
}

.health-badge {
    background-color: rgba(176, 42, 55, 0.08);
    border-left: 3px solid #b02a37;
    color: #495057;
    font-size: 0.9rem;
}
