/* ========== Overview Section ========== */

.section-overview {
    animation: fadeIn 0.2s ease;
}

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

.overview-group {
    margin-bottom: 28px;
}

.overview-group-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.overview-empty {
    color: var(--text-light);
    font-size: 13px;
    padding: 16px 0;
}

/* ========== Birthday Cards Grid ========== */

.overview-birthday-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.birthday-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.birthday-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Today */
.birthday-card.bday-today {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.birthday-card.bday-today:hover {
    background-color: rgba(16, 185, 129, 0.18);
}
.birthday-card.bday-today .birthday-card-days {
    color: var(--success-color);
}

/* 1-3 days */
.birthday-card.bday-soon {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.birthday-card.bday-soon:hover {
    background-color: rgba(245, 158, 11, 0.18);
}
.birthday-card.bday-soon .birthday-card-days {
    color: var(--warning-color);
}

/* 4-7 days */
.birthday-card.bday-week {
    background-color: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.birthday-card.bday-week:hover {
    background-color: rgba(59, 130, 246, 0.14);
}
.birthday-card.bday-week .birthday-card-days {
    color: var(--primary-color);
}

/* Card inner elements */
.birthday-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.birthday-card-info {
    flex: 1;
    min-width: 0;
}

.birthday-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.birthday-card-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.birthday-card-days {
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Pulse for today */
.birthday-card.bday-today .birthday-card-days {
    animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* No birthdays */
.overview-birthday-grid:empty::after {
    content: 'No hay cumpleaños en los próximos 7 días';
    color: var(--text-light);
    font-size: 13px;
    padding: 16px 0;
}

/* ========== Notifications ========== */

.overview-notif-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.15s;
}

.overview-notif-card:hover {
    border-color: var(--primary-color);
}

.overview-notif-card.notif-vista {
    opacity: 0.65;
}

.overview-notif-card.notif-today {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.overview-notif-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.notif-today .overview-notif-icon {
    background: rgba(245, 158, 11, 0.12);
}

.overview-notif-content {
    flex: 1;
    min-width: 0;
}

.overview-notif-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.overview-notif-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.overview-notif-date {
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

.notif-today .overview-notif-date {
    color: #f59e0b;
}

.overview-notif-badge {
    background: #f59e0b;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
