/* ========================================
   TATIN - NOTIFICACIONES
   Estilos para el componente de notificaciones
   ======================================== */

/* ==========================================
   COMPONENTE EN HEADER
   ========================================== */
.notificaciones-component {
    position: relative;
    margin-right: 20px;
}

.notif-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(240, 248, 255, 0.9));
    border-radius: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #F44336, #E91E63);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

.notif-badge.pulse {
    animation: pulseBadge 0.6s ease;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ==========================================
   DROPDOWN
   ========================================== */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 600px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(240, 248, 255, 0.98));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10000;
    animation: dropdownSlide 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    padding: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.btn-marcar-todas {
    padding: 8px 15px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-marcar-todas:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* ==========================================
   LISTA DE NOTIFICACIONES
   ========================================== */
.notif-list {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

.notif-item {
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: start;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.notif-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.notif-item.no-leida {
    background: rgba(102, 126, 234, 0.08);
}

.notif-item.no-leida:hover {
    background: rgba(102, 126, 234, 0.12);
}

.notif-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.notif-content {
    flex: 1;
}

.notif-mensaje {
    font-size: 0.95rem;
    color: #2C3E50;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.8rem;
    color: #999;
}

.notif-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #F44336, #E91E63);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.notif-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.notif-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.notif-empty p {
    font-size: 1rem;
    color: #666;
}

.notif-loading {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 1rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.notif-footer {
    padding: 15px 20px;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

.notif-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.notif-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .notificaciones-component {
        margin-right: 10px;
    }
    
    .notif-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .notif-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .btn-marcar-todas {
        width: 100%;
    }
    
    .notif-item {
        padding: 12px 15px;
    }
    
    .notif-icon {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}