/* * Vaga Doc - Global Design System
 * Focus: Clean, Medical Authority, High Conversion
 */

/* --- 1. DESIGN TOKENS (VARIABLES) --- */
:root {
    --brand-ink: #13211f;
    --brand-muted: #5f6e68;
    --brand-accent: #0d7a5f;
    --brand-accent-hover: #0a6a53;
    --brand-accent-soft: #d7efe7;
    --brand-warm: #b56433;
    --brand-bg: #f4ecdf;
    --brand-surface: rgba(255, 252, 246, 0.9);
    --brand-line: rgba(19, 33, 31, 0.08);
    --brand-shadow: 0 12px 40px rgba(19, 33, 31, 0.05);
    --bs-link-color-rgb: 13, 122, 95;
    --bs-link-hover-color-rgb: 10, 106, 83;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

/* --- 2. CORE LAYOUT --- */
body {
    min-height: 100vh;
    color: var(--brand-ink);
    background:
        radial-gradient(
            circle at top left,
            rgba(181, 100, 51, 0.12),
            transparent 24%
        ),
        radial-gradient(
            circle at top right,
            rgba(13, 122, 95, 0.14),
            transparent 24%
        ),
        linear-gradient(180deg, #f8f2e7 0%, var(--brand-bg) 100%);
    background-attachment: fixed;
}

/* Container limits for desktop */
.brand-shell {
    width: min(1180px, calc(100% - 24px));
    margin-inline: auto;
}

/* Main content panels with blur effect */
.brand-panel {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid var(--brand-line);
    box-shadow: var(--brand-shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* --- 3. TYPOGRAPHY --- */
.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

/* Small label above titles */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--brand-warm);
    font-weight: 700;
}

label {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 5px;
    color: var(--brand-ink);
}

/* --- 4. COMPONENTS --- */

/* Cards with hover interaction */
.metric-card,
.feature-card,
.card {
    border: 1px solid var(--brand-line);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.55);
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--brand-accent) !important;
}

/* Pill-shaped status indicator */
.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--brand-accent-soft);
    color: var(--brand-accent);
    font-weight: 600;
}

/* Semantic Status Backgrounds */
.bg-light-success {
    background-color: #f8fdfa !important;
    border: 1px solid #d1e7dd;
}

.bg-light-warning {
    background-color: #fffdf5 !important;
    border: 1px solid #fff3cd;
}

.bg-soft-success {
    background-color: #dceee6 !important;
}

.text-vacant {
    color: #8a5b00;
}

.public-page a:not(.btn):not(.public-card-link) {
    color: var(--brand-accent);
    text-decoration: none;
}

.public-page a:not(.btn):not(.public-card-link):hover {
    color: var(--brand-accent-hover);
    text-decoration: none;
}

.public-card-link,
.public-card-link:hover {
    display: block;
    height: 100%;
    color: var(--brand-ink);
    text-decoration: none;
}

.public-card-link:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 4px;
    border-radius: 1.5rem;
}

.public-card-action {
    color: var(--brand-accent);
    font-weight: 600;
}

.public-page .pagination .page-link {
    border: 0;
    border-radius: 0.75rem;
    background: var(--brand-surface);
    color: var(--brand-ink);
}

.public-page .pagination .active .page-link {
    background: var(--brand-accent);
    color: white;
}

.public-page .pagination a.page-link:hover {
    background: var(--brand-accent-soft);
    text-decoration: none;
}

.public-page .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--brand-ink);
    --bs-table-border-color: var(--brand-line);
}

.public-page .table thead {
    background: var(--brand-accent-soft);
}

.brand-footer a {
    color: var(--brand-muted);
    text-decoration: none;
}

.brand-footer a:hover {
    color: var(--brand-accent);
    text-decoration: none;
}

/* --- 5. FORM ELEMENTS --- */
.form-control,
.form-select,
.form-check-input {
    border-color: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.form-control:focus,
form-select:focus,
.form-check-input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.25rem rgba(13, 122, 95, 0.1);
}

/* Used for hiding sensitive data for non-premium users */
.filter-blur {
    filter: blur(10px);
    opacity: 0.3;
    user-select: none;
    pointer-events: none;
}

/* --- 6. BUTTONS --- */
.btn-brand,
.btn-success {
    background-color: var(--brand-accent);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-brand:hover,
.btn-success:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    color: white;
}

/* Warning buttons using warm/orange tone */
.btn-warning {
    background-color: var(--brand-warm);
    border: none;
    color: white;
}

/* --- 7. ANIMATIONS --- */
@keyframes bounceIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate__bounceIn {
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
