/* Fonte Sora */
@font-face {
    font-family: 'Sora';
    src: url('/assets/fonts/Sora-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Sora';
    src: url('/assets/fonts/Sora-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Sora';
    src: url('/assets/fonts/Sora-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Sora';
    src: url('/assets/fonts/Sora-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: #0a0a0a;
    font-family: 'Sora', sans-serif;
    color: white;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.header-logo {
    height: 60px;
    width: auto;
}

/* Tabs de navegacao */
.tabs-container {
    background: #0a0a0a;
    padding: 0 32px;
}

.custom-tabs {
    border: none !important;
}

.custom-tabs-container {
    background: #0a0a0a !important;
}

.custom-tab {
    background: #1a1a1a !important;
    color: #888 !important;
    border: none !important;
    padding: 14px 32px !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border-radius: 8px 8px 0 0 !important;
    margin-right: 4px !important;
    transition: all 0.2s ease !important;
}

.custom-tab:hover {
    background: #252525 !important;
    color: #ccc !important;
}

.custom-tab--selected {
    background: #af7ef9 !important;
    color: white !important;
    border: none !important;
}

/* Container principal */
.page-content {
    padding: 24px 32px;
    background: #0a0a0a;
    min-height: calc(100vh - 140px);
}

/* Container flex para KPIs e graficos */
.container {
    background: #0a0a0a;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 16px 32px;
    gap: 16px;
}

/* Container de KPIs */
.container-kpi {
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    width: 100%;
    gap: 16px;
}

/* Cards de KPI */
.kpi-format {
    background: linear-gradient(135deg, #af7ef9 0%, #8b5cf6 100%);
    color: white;
    font-family: 'Sora', sans-serif;
    text-align: center;
    border-radius: 16px;
    width: 100%;
    padding: 24px 16px;
    box-shadow: 0 4px 20px rgba(175, 126, 249, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-format:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(175, 126, 249, 0.3);
}

.kpi-format h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.kpi-format p {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

/* Container de graficos */
.container-graph {
    background: #111;
    border-radius: 16px;
    padding: 16px;
    flex: 1;
    border: 1px solid #1a1a1a;
}

/* Container de grafico largura total */
.container-graph-full {
    flex: none;
    width: 100%;
    min-height: 500px;
}

/* Filtros */
.container-filtros {
    background: #0a0a0a;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 16px 32px;
    gap: 16px;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filtro-item label {
    color: #888;
    margin-bottom: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown de turmas */
.container-dropdown {
    background: transparent;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 32px;
}

.container-dropdown label {
    color: #888;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

#dp-1 {
    min-width: 200px;
}

/* Estilo global para Dropdowns */
.Select-control {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
}

.Select-control:hover {
    border-color: #af7ef9 !important;
}

.Select-value-label {
    color: white !important;
    font-family: 'Sora', sans-serif !important;
}

.Select-placeholder {
    color: #666 !important;
    font-family: 'Sora', sans-serif !important;
}

.Select-input input {
    color: white !important;
    font-family: 'Sora', sans-serif !important;
}

.Select-menu-outer {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
}

.Select-option {
    background-color: #1a1a1a !important;
    color: white !important;
    font-family: 'Sora', sans-serif !important;
    padding: 10px 12px !important;
}

.Select-option:hover,
.Select-option.is-focused {
    background-color: #af7ef9 !important;
    color: white !important;
}

.Select-option.is-selected {
    background-color: #8b5cf6 !important;
}

.Select-arrow-zone {
    color: #666 !important;
}

.Select-clear-zone {
    color: #666 !important;
}

/* Graficos Plotly - fundo transparente */
.js-plotly-plot .plotly .main-svg {
    background: transparent !important;
}
