/* Design System & Variáveis */
:root {
    --brand-orange: #df672b;
    --brand-orange-light: #fbeee7;
    --brand-grey: #4d4d4d;
    --brand-grey-light: #f1f1f1;
    --brand-blue: #9dbbc3;
    --brand-blue-light: #f0f6f8;
    
    --bg-app: #f4f6f8;
    --bg-card: #ffffff;
    --border-card: #e9ecef;
    --border-hover: #df672b33;
    
    --text-primary: #2b2d2f;
    --text-secondary: #6c757d;
    --text-light: #a0aec0;
    
    --success: #5ca387;
    --success-light: #eef7f3;
    --warning: #e6b83b;
    --warning-light: #fef8eb;
    --danger: #d95d53;
    --danger-light: #fdf2f1;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(223, 103, 43, 0.05);
    
    --font-primary: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
}


/* Reset de Estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header Estilo */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--brand-orange);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-img {
    height: 42px;
    object-fit: contain;
}

.logo-graphic {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 38px;
}

.logo-graphic .bar {
    width: 14px;
    border-radius: 2px;
}

.logo-graphic .bar-orange {
    height: 30px;
    background-color: var(--brand-orange);
}

.logo-graphic .bar-grey {
    height: 38px;
    background-color: var(--brand-grey);
}

.logo-graphic .bar-blue {
    height: 25px;
    background-color: var(--brand-blue);
}

.logo-text h1 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--brand-grey);
    line-height: 1.1;
}

.logo-text .subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 6.5px;
    color: var(--text-secondary);
    display: block;
    margin-top: 1px;
}

.filter-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-grey);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none;
    background-color: var(--bg-app);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    min-width: 280px;
}

.custom-select:hover {
    border-color: var(--brand-orange);
    background-color: #ffffff;
}

.custom-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(223, 103, 43, 0.15);
    background-color: #ffffff;
}

.select-wrapper::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.custom-select.month-select {
    min-width: 200px;
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
}

.btn-primary-outline:hover {
    background-color: var(--brand-orange);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(223, 103, 43, 0.2);
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background-color: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-card);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-icon.orange-bg {
    background-color: var(--brand-orange-light);
    color: var(--brand-orange);
}

.kpi-icon.blue-bg {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
}

.kpi-icon.grey-bg {
    background-color: var(--brand-grey-light);
    color: var(--brand-grey);
}

.kpi-icon.dark-orange-bg {
    background-color: #fef0eb;
    color: #e25a27;
}

.kpi-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kpi-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.15rem 0;
}

.kpi-trend {
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kpi-trend.positive {
    color: var(--success);
}

.kpi-trend.neutral {
    color: var(--text-secondary);
}

.kpi-trend.negative {
    color: var(--danger);
}

/* Dashboard Layout Grid */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-row {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.row-2col {
    grid-template-columns: repeat(2, 1fr);
}

.row-1col {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .row-2col {
        grid-template-columns: 1fr;
    }
}

/* Cards de Gráficos */
.card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

/* Cabeçalho do Cartão */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.header-title h2 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.15rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.orange {
    background-color: var(--brand-orange-light);
    color: var(--brand-orange);
}

.badge.grey {
    background-color: var(--brand-grey-light);
    color: var(--brand-grey);
}

.badge.blue {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
}

.badge.green {
    background-color: var(--success-light);
    color: var(--success);
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-info {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Flex Row Card Layout (Para Volume de Atividades e Timesheet) */
.flex-row-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.card-chart-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-side-info {
    width: 180px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-card);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 650px) {
    .flex-row-card {
        flex-direction: column;
    }
    .card-side-info {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-card);
        padding-left: 0;
        padding-top: 1.25rem;
    }
}

/* Listas Consolidadas do Painel Lateral */
.card-side-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monthly-list {
    list-style: none;
}

.monthly-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border-card);
}

.monthly-list li:last-child {
    border-bottom: none;
}

.monthly-list li .month {
    font-weight: 500;
    color: var(--text-secondary);
}

.monthly-list li .value {
    font-weight: 600;
    color: var(--text-primary);
}

.monthly-list li.total {
    border-top: 1px solid var(--text-primary);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    font-weight: 700;
}

.monthly-list li.total .month,
.monthly-list li.total .value {
    color: var(--brand-orange);
    font-size: 0.9rem;
}

/* Timesheet Capacity Box */
.capacity-box {
    background-color: var(--brand-blue-light);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid var(--border-card);
}

.capacity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.capacity-label {
    color: var(--text-secondary);
}

.capacity-pct {
    color: var(--brand-orange);
    font-weight: 700;
}

.capacity-track {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.capacity-fill {
    height: 100%;
    background-color: var(--brand-orange);
    border-radius: 10px;
    transition: width 0.6s ease-in-out;
}

.capacity-hours {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
}

/* Timesheet Month Box & Progress Bars */
.ref-month-box {
    background-color: var(--brand-orange-light);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.ref-month-box .ref-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.ref-month-box .ref-value {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.horizontal-bars-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lawyer-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lawyer-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lawyer-bar-header .lawyer-bar-hours {
    color: var(--text-secondary);
}

.lawyer-bar-track {
    height: 6px;
    background-color: var(--brand-grey-light);
    border-radius: 10px;
    overflow: hidden;
}

.lawyer-bar-fill {
    height: 100%;
    background-color: var(--brand-blue);
    border-radius: 10px;
    transition: width 0.8s ease-in-out;
}

.lawyer-bar-item:nth-child(1) .lawyer-bar-fill {
    background-color: var(--brand-orange);
}
.lawyer-bar-item:nth-child(2) .lawyer-bar-fill {
    background-color: var(--brand-grey);
}
.lawyer-bar-item:nth-child(3) .lawyer-bar-fill {
    background-color: var(--brand-blue);
}
.lawyer-bar-item:nth-child(4) .lawyer-bar-fill {
    background-color: #a5b4fc; /* soft color for junior */
}

/* Gráfico Wrappers */
.chart-wrapper {
    width: 100%;
    min-height: 280px;
    flex-grow: 1;
    position: relative;
}

/* Donut Grid Layout (Time Tracking) */
.lawyers-donuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
    flex-grow: 1;
}

@media (max-width: 850px) {
    .lawyers-donuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .lawyers-donuts-grid {
        grid-template-columns: 1fr;
    }
}

.lawyer-donut-card {
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-card);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.lawyer-donut-card:hover, .lawyer-donut-card.active {
    box-shadow: 0 4px 15px rgba(223, 103, 43, 0.08);
    border-color: rgba(223, 103, 43, 0.3);
    transform: translateY(-2px);
}

.lawyer-donut-card.active {
    background-color: #fdfaf8;
}

.lawyer-donut-card.inactive {
    opacity: 0.4;
}

/* Advogado Avatar */
.lawyer-profile-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lawyer-avatar-container {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background-color: var(--brand-grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    border: 2px solid var(--border-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.lawyer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-donut-card.active .lawyer-avatar-container {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(223, 103, 43, 0.2);
}

.avatar-svg {
    width: 100%;
    height: 100%;
}

.lawyer-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.lawyer-role {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.lawyer-start-date {
    font-size: 0.62rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

.donut-chart-container {
    width: 100%;
    min-height: 140px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Layout de Clientes Top (Pareto) */
.top-clients-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.chart-container-pareto {
    flex-grow: 1;
    min-height: 350px;
}

.pareto-insights {
    width: 320px;
    border: 1px solid var(--border-card);
    background-color: var(--bg-app);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .top-clients-layout {
        flex-direction: column;
    }
    .pareto-insights {
        width: 100%;
    }
}

.pareto-insights h3 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-grey);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pareto-insights h3 i {
    color: var(--brand-orange);
}

.pareto-insights p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.insight-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-stat-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

.insight-stat-item .stat-num {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.insight-stat-item .stat-desc {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Footer */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem 0 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-card);
    margin-top: 1.5rem;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 6px var(--success);
}

.footer-center {
    font-weight: 500;
}

@media (max-width: 768px) {
    .app-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Overlay de Carregamento para Dados Reais CSV */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 246, 248, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
}

.spinner {
    width: 55px;
    height: 55px;
    border: 5px solid var(--brand-blue-light);
    border-top: 5px solid var(--brand-orange);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(223, 103, 43, 0.1);
}

.loading-overlay p {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-grey);
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para Impressão e PDF */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    .app-container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .filter-area, 
    #btn-print-dashboard,
    .loading-overlay,
    .app-footer {
        display: none !important;
    }
    
    .app-header {
        box-shadow: none !important;
        border-bottom: 2px solid #000000 !important;
        border-radius: 0 !important;
        padding: 1rem 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .kpi-card, .card {
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .dashboard-grid {
        gap: 1rem !important;
    }
    
    .dashboard-row {
        gap: 1rem !important;
    }
}

/* Estilo Premium para Cards em Construção */
.card-under-construction {
    position: relative;
    overflow: hidden;
}

.card-under-construction > :not(.card-header) {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.55;
    transition: filter 0.3s ease;
}

.card-under-construction::after {
    content: 'Em construção';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.45);
    color: var(--brand-grey);
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(2.5px);
    border-radius: 16px;
    pointer-events: none;
}

/* Custom slider styles for Atividades mais Realizadas */
#card-time-tracking .lawyers-donuts-grid {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    padding: 0.25rem 0;
}

#card-time-tracking .lawyer-donut-card {
    flex: 1;
    height: 100%;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-card);
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem 1.5rem;
}

.lawyer-profile-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 160px;
    margin-bottom: 0 !important;
}

@media (max-width: 580px) {
    #card-time-tracking .lawyer-donut-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .lawyer-profile-mini {
        margin-bottom: 0.75rem !important;
    }
}

.lawyer-donut-card.hidden-slide {
    display: none !important;
}

/* Navigation control styles */
.badge-group-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}

.btn-nav:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background-color: var(--brand-orange-light);
}

.btn-nav:active {
    transform: scale(0.92);
}

.btn-nav[disabled] {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
    border-color: var(--border-card) !important;
    color: var(--text-light) !important;
    background-color: transparent !important;
}

.nav-indicator {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 38px;
    text-align: center;
    font-family: var(--font-primary);
}

/* Bloco de Análise por IA (Distorções) */
.ai-insight-box {
    margin-top: 1.25rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(223, 103, 43, 0.04) 0%, rgba(157, 187, 195, 0.04) 100%);
    border: 1px solid rgba(223, 103, 43, 0.12);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.ai-insight-box:hover {
    border-color: rgba(223, 103, 43, 0.25);
    background: linear-gradient(135deg, rgba(223, 103, 43, 0.07) 0%, rgba(157, 187, 195, 0.07) 100%);
    box-shadow: 0 4px 12px rgba(223, 103, 43, 0.05);
}

.ai-insight-title {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.ai-insight-title i {
    font-size: 0.9rem;
    animation: sparkle 2s infinite alternate;
}

@keyframes sparkle {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 2px var(--brand-orange)); }
}

.ai-insight-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.ai-insight-text strong {
    color: var(--brand-grey);
    font-weight: 600;
}

/* Header Active Profile Card */
.header-profile-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--brand-orange-light);
    border: 1px solid rgba(223, 103, 43, 0.15);
    border-radius: 20px;
    margin-left: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.header-profile-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--brand-orange);
    object-fit: cover;
}

.header-profile-info {
    display: flex;
    flex-direction: column;
}

.header-profile-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-grey);
}

.header-profile-role {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .header-profile-card {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* Card de Decisões - Lista de Processos */
#card-decisoes .card-side-info {
    width: 280px;
    padding-left: 1.25rem;
}

.decisions-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar para a lista de decisões favoráveis */
.decisions-list::-webkit-scrollbar {
    width: 4px;
}
.decisions-list::-webkit-scrollbar-track {
    background: transparent;
}
.decisions-list::-webkit-scrollbar-thumb {
    background-color: var(--text-light);
    border-radius: 4px;
}

