/* ===== SofIA Notificaciones Canvas — leídas por voz por Sofia ===== */

.sofia-notif-container {
    min-width: 480px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

.sofia-notif-overlay {
    background: rgba(0, 0, 0, 0.18);
}

.sofia-notif-header h5 {
    gap: 12px;
    align-items: center;
}

.sofia-notif-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(42, 112, 176, 0.3);
    box-shadow: 0 2px 6px rgba(42, 112, 176, 0.18);
}

.sofia-notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    background: #D13438;
    margin-left: 4px;
}

.sofia-notif-body {
    padding: 16px 24px;
}

.sofia-notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: #605e5c;
}

.sofia-notif-empty i {
    font-size: 2.5rem;
    color: #a19f9d;
    display: block;
    margin-bottom: 8px;
}

.sofia-notif-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.sofia-notif-actions-top {
    margin-bottom: 14px;
    display: flex;
    justify-content: flex-end;
}

.sofia-notif-read-all {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 999px;
    border-color: rgba(42, 112, 176, 0.45);
    color: #2A70B0;
    background: rgba(42, 112, 176, 0.08);
}

.sofia-notif-read-all:hover:not(:disabled) {
    background: rgba(42, 112, 176, 0.18);
    border-color: #2A70B0;
}

.sofia-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
}

.sofia-notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(237, 235, 233, 0.7);
    transition: background 0.15s ease;
}

.sofia-notif-item:hover {
    background: rgba(0, 120, 212, 0.04);
}

.sofia-notif-item:last-child {
    border-bottom: none;
}

.sofia-notif-item.is-unread {
    background: rgba(42, 112, 176, 0.06);
    border-left: 3px solid #2A70B0;
}

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

.sofia-notif-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2A70B0;
    margin-bottom: 2px;
}

.sofia-notif-message {
    font-size: 0.9rem;
    color: #323130;
    line-height: 1.4;
    word-break: break-word;
}

.sofia-notif-speak {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d2d0ce;
    background: white;
    color: #2A70B0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.sofia-notif-speak:hover:not(:disabled) {
    background: rgba(42, 112, 176, 0.12);
    border-color: #2A70B0;
}

.sofia-notif-speak:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .sofia-notif-container {
        min-width: unset;
        max-width: calc(100vw - 32px);
    }
}
