/* Estilos para melhorias visuais das notificações */

/* Modal de notificações de login */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.notification-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.notification-modal-header {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.notification-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-modal-body {
    padding: 20px;
}

.notification-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9fafb;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notification-item.priority-alta {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.notification-item.priority-media {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.notification-item.priority-baixa {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.notification-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-priority.alta {
    background: #fee2e2;
    color: #dc2626;
}

.notification-priority.media {
    background: #fef3c7;
    color: #d97706;
}

.notification-priority.baixa {
    background: #dcfce7;
    color: #16a34a;
}

.notification-message {
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 8px;
}

.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.notification-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.notification-btn-primary {
    background: #3b82f6;
    color: white;
}

.notification-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.notification-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.notification-btn-secondary:hover {
    background: #d1d5db;
}

/* Badge de notificações */
.notification-badge {
    position: relative;
    display: inline-block;
}

.notification-badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.notification-badge-count.high-priority {
    background: #dc2626;
    animation: urgentPulse 1s infinite;
}

.notification-badge-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    margin-bottom: 5px;
}

.notification-badge:hover .notification-badge-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Painel de notificações */
.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.notification-panel-header {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.notification-panel-title {
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.notification-panel-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-panel-item:hover {
    background: #f9fafb;
}

.notification-panel-item:last-child {
    border-bottom: none;
}

.notification-panel-empty {
    padding: 30px 15px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        background: #dc2626;
    }
    50% {
        transform: scale(1.2);
        background: #ef4444;
    }
}

/* Responsividade */
@media (max-width: 640px) {
    .notification-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .notification-panel {
        width: 300px;
        right: -50px;
    }
    
    .notification-actions {
        flex-direction: column;
    }
    
    .notification-btn {
        width: 100%;
    }
}

/* Integração com tema escuro */
@media (prefers-color-scheme: dark) {
    .notification-modal-content {
        background: #1f2937;
        color: white;
    }
    
    .notification-item {
        background: #374151;
        border-color: #4b5563;
    }
    
    .notification-panel {
        background: #1f2937;
        border-color: #4b5563;
    }
    
    .notification-panel-header {
        background: #374151;
    }
}