/* /e/assets/css/notificacoes.css */

/* Container da notificação */
.notification-container {
    position: relative;
    display: inline-block;
}

/* Botão de notificação */
.notification-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    border-radius: 8px;
    transition: background 0.3s;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-btn i {
    font-size: 18px;
}

/* Badge do ícone */
.notif-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 4px;
    box-shadow: 0 0 0 2px white;
}

/* Dropdown de notificações */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.notification-dropdown.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header a {
    color: #27ae60;
    font-size: 12px;
    text-decoration: none;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: background 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 18px;
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 13px;
}

.notification-text {
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.3;
}

.notification-time {
    font-size: 10px;
    color: #bdc3c7;
    margin-top: 3px;
}

.notification-empty {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
}

.notification-empty i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #bdc3c7;
}

.notification-footer {
    background: #f8f9fa;
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.notification-footer a {
    color: #27ae60;
    text-decoration: none;
    font-size: 12px;
}

/* Fechar ao clicar fora */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.notification-overlay.show {
    display: block;
}