/* Date picker customizado – tema escuro (pop-up do calendário) */
.custom-datepicker {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 280px;
    font-size: 0.9rem;
}

.custom-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.custom-dp-nav {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-dp-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.custom-dp-month-year {
    color: var(--text-primary);
    font-weight: 600;
}

.custom-dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.custom-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.custom-dp-day {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.custom-dp-day:hover:not(.custom-dp-other) {
    background: var(--bg-hover);
    color: var(--primary);
}

.custom-dp-day.custom-dp-selected {
    background: var(--primary);
    color: #1a1a1a;
    font-weight: 600;
}

.custom-dp-day.custom-dp-today {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.custom-dp-day.custom-dp-today.custom-dp-selected {
    border-color: #1a1a1a;
}

.custom-dp-other {
    visibility: hidden;
    cursor: default;
}

/* Destaque do intervalo (tipo aérea: do dia X ao dia Y) */
.custom-dp-day.custom-dp-in-range {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary);
}
.custom-dp-day.custom-dp-in-range:hover {
    background: rgba(255, 215, 0, 0.35);
}
.custom-dp-day.custom-dp-selected.custom-dp-in-range {
    background: var(--primary);
    color: #1a1a1a;
}

.custom-dp-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.custom-dp-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
}

.custom-dp-btn:hover {
    text-decoration: underline;
}
