/* ============= NOTIFICAÇÕES ============= */
.notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 80px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.notifications-panel.active {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.notifications-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 12px;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: #e3f2fd;
}

.notification-item.unread:hover {
    background: #bbdefb;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.notification-icon.danger {
    background: #f8d7da;
    color: #721c24;
}

.notification-icon.info {
    background: #d1ecf1;
    color: #0c5460;
}

.notification-icon.success {
    background: #d4edda;
    color: #155724;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--gray-500);
}

.notification-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-500);
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

.notifications-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-text:hover {
    background: var(--gray-100);
}

/* Badge no botão de notificação */
.btn-icon .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-icon .badge:empty {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-panel {
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 380px;
    }
}
