/* Obsidian Dark Theme - Premium Design para Grupo OftalmoPlus */

:root {
    --bg-gradient: linear-gradient(135deg, #060913 0%, #0c182e 50%, #0d1b3d 100%);
    --bg-solid: #060913;
    --panel-bg: rgba(13, 27, 61, 0.45);
    --panel-hover: rgba(20, 38, 80, 0.55);
    --border-color: rgba(0, 166, 180, 0.18);
    --text-primary: #f8fafc;
    --text-secondary: #00a6b4; /* Turquesa institucional */
    --text-muted: #8492a6;
    --accent-green: #0d9488; /* Teal de performance */
    --accent-emerald: #0f766e;
    --accent-blue: #0284c7;
    --accent-cyan: #00a6b4;
    --accent-navy: #0d1b3d;
    --accent-red: #a81d2d; /* Vermelho Vital */
    --accent-amber: #d97706;
    --accent-gold: #f59e0b;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    --glow-blue: 0 0 15px rgba(0, 166, 180, 0.25);
    --glow-red: 0 0 15px rgba(168, 29, 45, 0.25);
    --glow-green: 0 0 15px rgba(13, 148, 136, 0.25);
    --glow-gold: 0 0 15px rgba(245, 158, 11, 0.25);
    --title-gradient: linear-gradient(to right, #ffffff 10%, var(--accent-cyan) 60%, var(--accent-red) 100%);
}

[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --bg-solid: #f8fafc;
    --panel-bg: rgba(255, 255, 255, 0.65);
    --panel-hover: rgba(241, 245, 249, 0.85);
    --border-color: rgba(13, 27, 61, 0.1);
    --text-primary: #0d1b3d;
    --text-secondary: #00828f;
    --text-muted: #64748b;
    --accent-green: #0f766e;
    --accent-emerald: #115e59;
    --accent-blue: #0369a1;
    --accent-cyan: #00828f;
    --accent-navy: #0d1b3d;
    --accent-red: #a81d2d;
    --glass-shadow: 0 8px 32px 0 rgba(13, 27, 61, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    --glow-blue: 0 0 15px rgba(0, 130, 143, 0.15);
    --glow-red: 0 0 15px rgba(168, 29, 45, 0.15);
    --title-gradient: linear-gradient(to right, var(--accent-navy) 20%, var(--accent-cyan) 70%, var(--accent-red) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-solid);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 1.25rem 1.5rem; /* Ajuste fluido de padding lateral para desktop */
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Transições suaves para os overlays de gradientes lineares */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #060913 0%, #0c182e 50%, #0d1b3d 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[data-theme="light"] body::before {
    opacity: 0;
}

[data-theme="light"] body::after {
    opacity: 1;
}

.container, header, nav, main, .data-card, .kpi-card, .btn-primary, .btn-secondary, select, input, textarea {
    transition: background 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

.container {
    width: 100%;
    max-width: 100%; /* Largura total (fluido) de ponta a ponta */
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 950;
}

.header-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Premium Global Month Selector */
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-dropdown {
    position: relative;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
}

.premium-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 166, 180, 0.08);
    border: 1px solid rgba(0, 166, 180, 0.22);
    padding: 0.5rem 1.1rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.premium-dropdown-btn:hover {
    background: rgba(0, 166, 180, 0.15);
    border-color: rgba(0, 166, 180, 0.45);
    box-shadow: 0 4px 20px rgba(0, 166, 180, 0.2);
    transform: translateY(-1px);
}

.premium-dropdown-btn .btn-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.premium-dropdown-btn .btn-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    margin-left: 0.2rem;
}

.premium-dropdown.open .premium-dropdown-btn .btn-arrow {
    transform: rotate(180deg);
}

.premium-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #060913;
    border: 1px solid rgba(0, 166, 180, 0.25);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 166, 180, 0.3) rgba(0, 0, 0, 0.2);
    animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(0, 166, 180, 0.1);
}

.dropdown-item input[type="checkbox"] {
    accent-color: var(--text-secondary);
    width: 15px;
    height: 15px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.dropdown-item label {
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    flex-grow: 1;
    user-select: none;
}

.dropdown-item label:hover {
    color: var(--text-secondary);
}

/* Tab Fade In transitions for Premium feeling */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: contentFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide local/tab-level month selectors to keep UI clean and premium */
.select-month-container {
    display: none !important;
}

.badge-live {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-live::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-theme {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-theme:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
}

.btn-logout {
    background: rgba(200, 16, 46, 0.1);
    color: #ff8b9e;
    border: 1px solid rgba(200, 16, 46, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-logout:hover {
    background: var(--accent-red);
    color: #fff;
}

/* NAVEGAÇÃO */
.nav-tabs {
    display: flex;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
    color: var(--text-primary);
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
}

.nav-btn.admin-only {
    border-left: 2px solid var(--accent-amber);
}

/* TABS CONTENT */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KPI GRID */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.kpi-card {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
}

.kpi-card.highlight-green::before { background: var(--accent-green); }
.kpi-card.highlight-cyan::before { background: var(--accent-cyan); }
.kpi-card.highlight-gold::before { background: var(--accent-gold); }

.kpi-card.full-width {
    grid-column: 1 / -1;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.75rem 0 0.25rem 0;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* DATA CARD */
.data-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

/* PROGRESS BAR */
.progress-bar-container {
    background: rgba(0, 0, 0, 0.2);
    height: 10px;
    border-radius: 50px;
    overflow: hidden;
    margin: 0.75rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
    height: 100%;
    border-radius: 50px;
    box-shadow: var(--glow-blue);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* GRIDS */
.grid-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.grid-three-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-two-columns, .grid-three-columns {
        grid-template-columns: 1fr;
    }
}

.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .col-span-2 {
        grid-column: span 1;
    }
}

/* TABLE STYLING */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    text-align: left;
}

th, td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

td {
    font-size: 0.9rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.bold {
    font-weight: 700;
}

/* SLIDERS LIST */
.sliders-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.slider-info span {
    font-weight: 500;
}

.slider-info strong {
    color: var(--accent-cyan);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: var(--glow-blue);
}

/* SIMULATOR RESULTS LIST */
.sim-kpi-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.sim-kpi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.sim-kpi-item span {
    color: var(--text-muted);
}

.sim-kpi-item strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.sim-kpi-item.total {
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.sim-kpi-item.total strong {
    font-size: 1.6rem;
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.danger {
    background: rgba(200, 16, 46, 0.1);
    color: #ff8b9e;
    border: 1px solid rgba(200, 16, 46, 0.2);
}

/* FEEDBACK BOX */
.feedback-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.feedback-box h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .feedback-grid {
        grid-template-columns: 1fr;
    }
}

.feedback-grid h5 {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

.feedback-grid p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* FORM STYLING */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"], input[type="password"], input[type="number"], select, textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-blue);
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-cyan);
    color: #020815;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glow-blue);
}

.btn-primary:hover {
    background: #53f3ff;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
}

/* LOGIN PREMIUM SPLIT-SCREEN LAYOUT */
.login-split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #060913;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
}

/* Left side visual panel */
.login-brand-panel {
    flex: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow: hidden;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    background-color: #050a17;
}

/* Video Background */
.login-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Video Overlay */
.login-video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(13, 27, 61, 0.75) 0%, rgba(6, 9, 19, 0.92) 100%);
    z-index: 2;
}

.brand-showcase {
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out;
}

.brand-description {
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
}

.integrated-companies-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.section-tag {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.sub-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.sub-logo-card {
    background: rgba(13, 27, 61, 0.4);
    border: 1px solid rgba(0, 166, 180, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sub-logo-card:hover {
    background: rgba(20, 38, 80, 0.65);
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 166, 180, 0.2);
}

.sub-logo-card.oftalmo-mais { border-top: 3px solid var(--accent-red); }
.sub-logo-card.pro-saude { border-top: 3px solid var(--accent-green); }
.sub-logo-card.visao-plus { border-top: 3px solid var(--accent-cyan); }

.sub-logo-label {
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right side form panel */
.login-form-panel {
    flex: 0.85;
    background-color: #060913;
    border-left: 1px solid rgba(0, 166, 180, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    z-index: 10;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.form-header {
    margin-bottom: 2.25rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.form-control-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s;
}

.form-control {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border-radius: 8px;
    border: 1.5px solid rgba(0, 166, 180, 0.15);
    background: rgba(13, 27, 61, 0.25);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(13, 27, 61, 0.45);
    box-shadow: 0 0 15px rgba(0, 166, 180, 0.15);
}

.form-control:focus + .form-control-icon {
    color: var(--accent-cyan);
}

.login-footer-disclaimer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Rules */
@media (max-width: 992px) {
    .login-brand-panel {
        padding: 2rem;
    }
    .login-form-panel {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .login-split-container {
        flex-direction: column;
        overflow-y: auto;
    }
    .login-brand-panel {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 280px;
        padding: 2.5rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .login-bg-video {
        display: none; /* Hide video on mobile to save battery and bandwidth */
    }
    .login-form-panel {
        flex: 1;
        width: 100%;
        padding: 2.5rem 1.5rem;
        border-left: none;
    }
    .brand-showcase {
        gap: 1.5rem;
    }
    .brand-description {
        font-size: 1rem;
    }
    .sub-logos-grid {
        gap: 0.5rem;
    }
    .sub-logo-card {
        padding: 0.75rem 0.5rem;
    }
    .sub-logo-label {
        font-size: 0.65rem;
    }
    .form-header h2 {
        font-size: 1.6rem;
    }
}

.error-msg {
    color: #ff8b9e;
    background: rgba(200, 16, 46, 0.1);
    border: 1px solid rgba(200, 16, 46, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.select-month-container, .select-colab-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.select-month-container select, .select-colab-container select {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}
.feedback-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
@media (max-width: 576px) {
    .feedback-inputs {
        grid-template-columns: 1fr;
    }
}

/* Tabular Numbers Alignment (TIP: Prevents numbers from jumping when updating) */
td, th, .kpi-value, .sim-kpi-item strong {
    font-variant-numeric: tabular-nums;
}

/* Card Hover micro-interaction transition */
.kpi-card, .data-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.kpi-card:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 166, 180, 0.4);
}

/* Skeleton Loading pulse animation */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    border-radius: 4px;
    height: 1.25rem;
    display: inline-block;
    width: 100%;
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Inline SVG logo styling for high DPI screens */
.logo-wrapper-svg {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-wrapper-svg svg {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 166, 180, 0.25));
}

/* EFEITO PULSANTE E DESTAQUE DE METAS BATIDAS */
.kpi-card.goal-met {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15) !important;
}
.kpi-card.super-met {
    border-color: rgba(218, 165, 32, 0.4) !important;
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.2) !important;
    background: linear-gradient(to bottom right, var(--panel-bg), rgba(218, 165, 32, 0.02)) !important;
    position: relative;
}
.kpi-card.super-met::before {
    content: "👑";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.25rem;
    opacity: 0.3;
}
.kpi-card.recovery-met {
    border-color: rgba(16, 185, 129, 0.6) !important;
    animation: card-recovery-pulse 3s infinite alternate;
    background: linear-gradient(135deg, var(--panel-bg), rgba(16, 185, 129, 0.03) 50%, rgba(16, 185, 129, 0.06) 100%) !important;
    position: relative;
}
.kpi-card.recovery-met::before {
    content: "🚀" !important;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.25;
    pointer-events: none;
}
@keyframes card-recovery-pulse {
    0% {
        box-shadow: var(--card-shadow), 0 0 12px rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.35);
    }
    100% {
        box-shadow: var(--card-shadow), 0 0 25px rgba(16, 185, 129, 0.45);
        border-color: rgba(16, 185, 129, 0.75);
    }
}

/* Weekly progress cards */
.weekly-card {
    background: rgba(15, 61, 89, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
[data-theme="dark"] .weekly-card {
    background: rgba(255, 255, 255, 0.02);
}
.weekly-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 61, 89, 0.05);
    border-color: var(--accent-green);
}
[data-theme="dark"] .weekly-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.weekly-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.weekly-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}
.weekly-card-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.weekly-card-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.weekly-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(15, 61, 89, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.2rem;
}
[data-theme="dark"] .weekly-progress-container {
    background: rgba(255, 255, 255, 0.08);
}
.weekly-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-green);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.weekly-card-status {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: auto;
}
.weekly-card.met {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(15, 61, 89, 0.01), rgba(16, 185, 129, 0.02));
}
[data-theme="dark"] .weekly-card.met {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.4);
}

/* @media print styles for PDF export */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        font-size: 10pt !important;
    }
    .sidebar-nav, .sidebar, header, .nav-tabs, .header-container, #btn-print-pdf, .select-month-container, #scorecard-profile-select-container, #btn-refresh-report, .floating-btn-container, .nav-btn, .logo-panel, .logo-header, #scorecard-profile-container {
        display: none !important;
    }
    .main-content, .tab-content, #tab-scorecard {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    .kpi-card {
        background: #F8F9FA !important;
        border: 1px solid #CCCCCC !important;
        color: #000000 !important;
        box-shadow: none !important;
        transform: none !important;
        padding: 0.5rem !important;
    }
    .kpi-card * {
        color: #000000 !important;
    }
    .data-card {
        background: #FFFFFF !important;
        border: 1px solid #CCCCCC !important;
        box-shadow: none !important;
        color: #000000 !important;
        margin-top: 1rem !important;
        page-break-inside: avoid !important;
    }
    .data-card * {
        color: #000000 !important;
    }
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    th, td {
        border: 1px solid #CCCCCC !important;
        padding: 0.4rem !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
    }
    th {
        background: #EAEAEA !important;
        font-weight: bold !important;
    }
    tr:hover td {
        background: none !important;
    }
    @page {
        size: A4 landscape;
        margin: 1cm;
    }
}

/* =========================================================================
   SISTEMA DE NOTIFICAÇÕES TOAST PREMIUM
   ========================================================================= */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
    pointer-events: none;
}

.toast-card {
    pointer-events: auto;
    background: rgba(13, 27, 61, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 320px;
    max-width: 420px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-card.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    flex-grow: 1;
    font-size: 0.88rem;
    line-height: 1.4;
}

.toast-content strong {
    color: var(--text-secondary);
}

.toast-action-btn {
    background: var(--accent-green);
    color: #fff;
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--glow-green);
}

.toast-action-btn:hover {
    background: #0f766e;
    transform: scale(1.05);
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close-btn:hover {
    color: var(--text-primary);
}

[data-theme="light"] .toast-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(13, 27, 61, 0.15);
    box-shadow: 0 10px 30px rgba(13, 27, 61, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* =========================================================================
   RECURSOS HUMANOS (RH) - PREMIUM MANAGEMENT DASHBOARD
   ========================================================================= */

.rh-layout-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.75rem;
    align-items: start;
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .rh-layout-container {
        grid-template-columns: 1fr;
    }
}

/* SIDEBAR DE COLABORADORES */
.rh-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md, 12px);
    padding: 1.25rem;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    backdrop-filter: blur(10px);
}

.sidebar-search-container {
    position: relative;
    width: 100%;
}

.sidebar-search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm, 8px);
    color: var(--color-text-white, #ffffff);
    font-size: 0.9rem;
    transition: var(--transition-fast, 0.15s ease);
}

.sidebar-search-container input:focus {
    outline: none;
    border-color: var(--color-brand-cyan, #00A6B4);
    box-shadow: 0 0 0 2px rgba(0, 166, 180, 0.15);
}

.sidebar-search-container .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted, #64748b);
    font-size: 0.85rem;
}

.collaborators-list-wrapper {
    overflow-y: auto;
    max-height: 650px;
    padding-right: 0.25rem;
}

.collaborators-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collaborators-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: var(--transition-normal, 0.25s);
}

.collaborators-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.collaborators-list li.active {
    background: linear-gradient(135deg, rgba(0, 166, 180, 0.15), rgba(13, 27, 61, 0.2));
    border-color: rgba(0, 166, 180, 0.4);
    box-shadow: 0 4px 12px rgba(0, 166, 180, 0.05);
}

/* AVATAR COM INICIAIS */
.employee-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.employee-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.employee-list-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.employee-list-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-white, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-list-role {
    font-size: 0.75rem;
    color: var(--color-text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PAINEL PRINCIPAL DE PRONTUÁRIO */
.rh-main-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.rh-prontuario-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
}

.employee-profile-summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.employee-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.employee-meta-info h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-white, #ffffff);
}

.employee-badge-role {
    font-size: 0.8rem;
    background: rgba(0, 166, 180, 0.1);
    color: var(--color-brand-cyan, #00A6B4);
    border: 1px solid rgba(0, 166, 180, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full, 9999px);
    width: fit-content;
}

/* SUBTABS NAVEGAÇÃO */
.prontuario-subtabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem;
    border-radius: var(--radius-sm, 8px);
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.subtab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.25rem;
    color: var(--color-text-muted, #64748b);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast, 0.15s);
}

.subtab-btn:hover {
    color: var(--color-text-white, #ffffff);
    background: rgba(255, 255, 255, 0.03);
}

.subtab-btn.active {
    color: var(--color-text-white, #ffffff);
    background: var(--color-brand-cyan, #00A6B4);
    box-shadow: 0 2px 8px rgba(0, 166, 180, 0.2);
}

/* SUBTAB CONTENT CONTROLLERS */
.subtab-content {
    display: none;
    width: 100%;
}

.subtab-content.active {
    display: block;
    animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UPLOAD CARD PREMIUM */
.premium-upload-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.premium-upload-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--color-text-white, #ffffff);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
    .upload-form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted, #64748b);
}

.form-group select,
.form-group input[type="month"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm, 8px);
    color: var(--color-text-white, #ffffff);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast, 0.15s);
}

.form-group select:focus,
.form-group input[type="month"]:focus {
    border-color: var(--color-brand-cyan, #00A6B4);
}

.file-drop-label {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm, 8px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-normal, 0.25s);
    text-align: center;
}

.file-drop-label:hover {
    background: rgba(0, 166, 180, 0.03);
    border-color: rgba(0, 166, 180, 0.3);
}

.file-drop-label input[type="file"] {
    display: none;
}

.file-drop-label .file-icon {
    font-size: 1.75rem;
    color: var(--color-brand-cyan, #00A6B4);
    margin-bottom: 0.25rem;
}

.file-drop-label span {
    font-size: 0.85rem;
    color: var(--color-text-muted, #64748b);
    font-weight: 500;
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--color-brand-cyan, #00A6B4), #007c87);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 166, 180, 0.2);
    transition: var(--transition-normal, 0.25s);
    width: 100%;
}

.btn-primary-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 166, 180, 0.3);
}

.btn-primary-premium:active {
    transform: translateY(0);
}

/* PREMIUM TABLES */
.card-header-clean {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-header-clean h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-white, #ffffff);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.premium-table th {
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--color-text-white, #ffffff);
    vertical-align: middle;
}

.premium-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* HORARIOS SPECIFIC STYLES */
.horarios-table input[type="text"] {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 0.8rem !important;
    outline: none !important;
    transition: var(--transition-fast, 0.15s) !important;
}

.horarios-table input[type="text"]:focus {
    border-color: var(--color-brand-cyan, #00A6B4) !important;
}

.horarios-table .btn-save-horario {
    background: rgba(0, 166, 180, 0.1) !important;
    color: var(--color-brand-cyan, #00A6B4) !important;
    border: 1px solid rgba(0, 166, 180, 0.2) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: var(--transition-fast, 0.15s) !important;
}

.horarios-table .btn-save-horario:hover {
    background: var(--color-brand-cyan, #00A6B4) !important;
    color: #ffffff !important;
}

.horarios-table .btn-save-horario.success {
    background: rgba(5, 150, 105, 0.2) !important;
    color: #10b981 !important;
    border-color: rgba(5, 150, 105, 0.3) !important;
}

/* MONTH SELECTOR */
.month-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-selector-wrapper label {
    font-size: 0.85rem;
    color: var(--color-text-muted, #64748b);
}

.premium-select {
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.premium-select:focus {
    border-color: var(--color-brand-cyan, #00A6B4);
}

/* AVISO PREVISAO DE PREMIAÇÃO PADDING & ALIGNMENT */
#previsao-premiacao-banner {
    padding: 1.25rem 1.5rem !important;
    border-radius: var(--radius-md, 12px) !important;
    margin-bottom: 1.5rem !important;
}

/* KPI CARD VERTICAL ALIGNMENT */
.kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    align-items: stretch !important;
}

.kpi-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 120px !important;
    height: 100% !important;
}

/* TIMELINE VERTICAL DE OCORRÊNCIAS */
.timeline-container-vertical {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-container-vertical::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item-vertical {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.timeline-marker-vertical {
    position: absolute;
    left: -2rem;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #070e20;
    border: 3px solid #00A6B4;
    box-shadow: 0 0 8px rgba(0, 166, 180, 0.4);
    z-index: 2;
    transition: all 0.2s ease;
}

.timeline-item-vertical:hover .timeline-marker-vertical {
    transform: scale(1.2);
}

.timeline-item-vertical.elogio .timeline-marker-vertical {
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.timeline-item-vertical.orientacao .timeline-marker-vertical {
    border-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.timeline-item-vertical.advertencia .timeline-marker-vertical {
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.timeline-item-vertical.suspensao .timeline-marker-vertical {
    border-color: #b91c1c;
    box-shadow: 0 0 8px rgba(185, 28, 28, 0.4);
}

.timeline-item-vertical.atestado .timeline-marker-vertical {
    border-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.timeline-meta-vertical {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

.timeline-meta-vertical .badge-tipo {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.timeline-meta-vertical .badge-tipo.elogio { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.timeline-meta-vertical .badge-tipo.orientacao { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.timeline-meta-vertical .badge-tipo.advertencia { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.timeline-meta-vertical .badge-tipo.suspensao { background: rgba(185, 28, 28, 0.1); color: #ef4444; }
.timeline-meta-vertical .badge-tipo.atestado { background: rgba(99, 102, 241, 0.1); color: #818cf8; }
.timeline-meta-vertical .badge-tipo.feedback { background: rgba(255, 255, 255, 0.05); color: #cbd5e1; }

.timeline-desc-vertical {
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.timeline-author-vertical {
    font-size: 0.72rem;
    color: #64748b;
    font-style: italic;
}

/* SETTINGS MODAL SYSTEM & BUTTON */
.btn-settings {
    background: rgba(0, 166, 180, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 166, 180, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-settings:hover {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: var(--glow-blue);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-window {
    background: var(--bg-solid);
    background-image: var(--bg-gradient);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--glass-shadow);
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.modal-tab-btn:hover {
    color: var(--text-primary);
}

.modal-tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-grid .col-span-2 {
    grid-column: span 2;
}

.section-subtitle {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-cyan);
    border-bottom: 1px solid rgba(0, 166, 180, 0.15);
    padding-bottom: 0.25rem;
}

.input-with-action {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    background: rgba(0, 166, 180, 0.1);
    border: 1px solid rgba(0, 166, 180, 0.25);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--accent-cyan);
    color: #fff;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-window input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
    outline: none;
}

.modal-window input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 166, 180, 0.15);
}

.modal-window label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891b2 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--glow-blue);
}

.btn-primary-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 166, 180, 0.4);
}

.btn-primary-premium:active {
    transform: translateY(0);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    body {
        padding: 0.75rem 0.5rem;
    }
}

/* === REFINAMENTOS ESTÉTICOS INSPIRADOS EM SHOP EERS (DESIGN SaaS PREMIUM) === */

/* Cantos mais arredondados e elegantes para cards e modais */
.kpi-card, .data-card, .modal-card, .feedback-box {
    border-radius: 20px !important; /* Cantos arredondados generosos como na referência */
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%) !important;
}

[data-theme="light"] .kpi-card, [data-theme="light"] .data-card, [data-theme="light"] .modal-card, [data-theme="light"] .feedback-box {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.045) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.45) 100%) !important;
    box-shadow: 0 10px 30px rgba(13, 27, 61, 0.045) !important;
}

/* Transição suave com curva de velocidade bezier premium no hover de cards */
.kpi-card:hover, .data-card:hover {
    transform: translateY(-4px) scale(1.008) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(0, 166, 180, 0.45) !important;
}

[data-theme="light"] .kpi-card:hover, [data-theme="light"] .data-card:hover {
    box-shadow: 0 20px 45px rgba(13, 27, 61, 0.08) !important;
    border-color: rgba(0, 130, 143, 0.35) !important;
}

/* Barras de progresso premium, mais finas e arredondadas */
.progress-bar-container, .weekly-progress-container {
    height: 7px !important;
    border-radius: 9999px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    overflow: hidden !important;
}

[data-theme="light"] .progress-bar-container, [data-theme="light"] .weekly-progress-container {
    background: rgba(0, 0, 0, 0.05) !important;
}

.progress-bar-fill, .weekly-progress-bar {
    border-radius: 9999px !important;
}

/* Badges pílulas com fundo pastel opaco de visual SaaS do vídeo */
.badge-premium-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: -0.1px;
    line-height: 1;
}

.badge-premium-pill.success {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.badge-premium-pill.warning {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.badge-premium-pill.info {
    background: rgba(0, 166, 180, 0.08) !important;
    color: #00a6b4 !important;
    border: 1px solid rgba(0, 166, 180, 0.2) !important;
}

/* Botões com cantos super modernos */
.btn-primary, .btn-secondary, .premium-dropdown-btn, .btn-primary-premium {
    border-radius: 12px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
}

/* Tabelas limpas com visual flutuante */
table {
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
}

th {
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid rgba(255,255,255,0.03) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="light"] th {
    border-bottom: 2px solid rgba(0,0,0,0.03) !important;
}

td {
    border: none !important;
    background: rgba(255,255,255,0.01) !important;
    padding: 0.9rem 1.1rem !important;
    transition: all 0.2s ease !important;
}

[data-theme="light"] td {
    background: rgba(0,0,0,0.005) !important;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
}

[data-theme="light"] tr:hover td {
    background: rgba(0,0,0,0.015) !important;
    color: var(--text-primary) !important;
}

tr td:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

tr td:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

/* Ícone de Info Interativo para Cards de KPI */
.kpi-info-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--accent-green);
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.kpi-card:hover .kpi-info-icon {
    opacity: 1 !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.4);
    background: rgba(13, 148, 136, 0.2);
    border-color: rgba(13, 148, 136, 0.4);
}
