/* ==================== NOTIFICAÇÕES ==================== */

/* Badge de notificações no menu */
.notification-badge {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.notification-badge .bell-icon {
    font-size: 24px;
    color: #333;
    transition: color 0.3s;
}

.notification-badge .bell-icon:hover {
    color: #088178;
}

.notification-badge .badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dropdown de notificações */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.notification-dropdown.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #088178 0%, #0a9d8e 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mark-all-read {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.mark-all-read:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #088178;
    border-radius: 3px;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #e8f5f3;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #088178;
    border-radius: 50%;
}

.notification-item.unread {
    padding-left: 30px;
}

.notification-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.notification-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 5px;
}

.notification-type-sono {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-type-alimentacao {
    background: #fff3e0;
    color: #f57c00;
}

.notification-type-passaporte {
    background: #f3e5f5;
    color: #7b1fa2;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.notification-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.3;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* Overlay para fechar o dropdown */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
}

.notification-overlay.show {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .notification-dropdown {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 100%;
    }
}

/* Toast de notificação */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 2000;
    animation: slideUp 0.4s ease;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-toast.hide {
    animation: slideDown 0.3s ease forwards;
}

.notification-toast-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.notification-toast-icon {
    font-size: 32px;
    margin-right: 12px;
}

.notification-toast-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.notification-toast-message {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.notification-toast-action {
    background: #088178;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-toast-action:hover {
    background: #0a9d8e;
}
