/* Estilos do calendário de Registros de Voo - visual moderno */

/* Wrapper geral */
.rv-calendario-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 65%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Cabeçalho */
.rv-calendario-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    padding-bottom: 12px;
}

.rv-calendario-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rv-calendario-title h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.rv-plane-icon {
    font-size: 1.6rem;
}

/* Filtro de ano */
.rv-year-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.rv-year-filter label {
    font-weight: 500;
    color: #334155;
}

.rv-year-filter select {
    border-radius: 999px;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.rv-year-filter select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* Legenda */
.rv-calendario-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #475569;
}

.rv-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rv-legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.rv-legend-has-registro {
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    border-color: #1d4ed8;
}

.rv-legend-empty {
    background: #e5e7eb;
}

/* Grid de meses (3 colunas desktop, 2 tablet, 1 mobile) */
.rv-year-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1024px) {
    .rv-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .rv-year-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Cartão de mês */
.rv-month-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px 8px 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rv-month-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.rv-month-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Tabela de calendário */
.rv-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.75rem;
}

.rv-calendar-table thead th {
    text-align: center;
    padding: 4px 2px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.rv-calendar-table tbody td {
    text-align: center;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}

.rv-calendar-table tbody tr:last-child td {
    border-bottom: none;
}

/* Dias */
.rv-day-cell {
    position: relative;
    height: 24px;
    vertical-align: middle;
}

.rv-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-weight: 500;
    color: #0f172a;
}

.rv-day-cell.rv-has-registro .rv-day-number {
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3), 0 6px 15px rgba(37, 99, 235, 0.35);
}

.rv-day-cell.rv-has-registro a {
    text-decoration: none;
}

.rv-day-cell.rv-has-registro .rv-day-number:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4), 0 10px 20px rgba(37, 99, 235, 0.45);
}

/* Células vazias */
.rv-empty {
    background-color: transparent;
}

/* Pequeno ajuste em mobile */
@media (max-width: 480px) {
    .rv-calendar-table thead th {
        font-size: 0.7rem;
    }

    .rv-day-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}
