/**
 * Estilos para el sistema de notificaciones
 * Dropdown y página de notificaciones
 */

/* ========================================
   BOTÓN DE CAMPANA Y DROPDOWN
   ======================================== */

.qv-bell-btn {
    font-size: 1.3rem !important;
    transition: all 0.3s ease;
}

.qv-bell-btn:hover {
    transform: scale(1.1);
    color: #ff1a75 !important;
}

.qv-notification-badge {
    font-size: 0.7rem;
    min-width: 1.5rem !important;
    height: 1.5rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: -0.7rem !important;
    right: 0.35rem !important;
    left: 1.5rem !important;
    transform: translate(0, 0) !important;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
}

/* Dropdown Menu */
.qv-notifications-menu {
    background: rgba(15, 2, 10, 0.96) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 26, 117, 0.25) !important;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-top: 8px;
}

.qv-notifications-menu .dropdown-header {
    background: rgba(255, 26, 117, 0.08);
    border-radius: 0px;
    color: #ffd700;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 26, 117, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qv-notifications-menu .dropdown-header h6 {
    font-weight: 600;
    color: #ffd700;
    margin: 0;
    flex: 1;
    margin-right: 15px;
}

.qv-mark-all-read {
    transition: all 0.3s ease;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.85rem;
    white-space: nowrap;
}

.qv-mark-all-read:hover {
    color: #ff66b2 !important;
}

/* Lista de notificaciones */
.qv-notifications-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 0;
}

.qv-notifications-list::-webkit-scrollbar {
    width: 6px;
}

.qv-notifications-list::-webkit-scrollbar-track {
    background: rgba(30, 5, 20, 0.4);
}

.qv-notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 26, 117, 0.4);
    border-radius: 3px;
}

.qv-notifications-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 26, 117, 0.6);
}

/* Elemento de notificación */
.qv-notification-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 26, 117, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: #f5f5f5;
}

.qv-notification-item:hover {
    background: rgba(255, 26, 117, 0.08);
    padding-left: 20px;
}

.qv-notification-item.unread {
    background: rgba(255, 26, 117, 0.08);
    border-left: 4px solid #ff1a75;
    padding-left: 12px;
}

.qv-notification-item.unread:hover {
    background: rgba(255, 26, 117, 0.12);
    padding-left: 16px;
}

.qv-notification-message {
    font-size: 0.78rem;
    line-height: 1.3;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.qv-notification-time {
    font-size: 0.68rem;
    color: #ff99cc;
    opacity: 0.75;
}

.qv-notification-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    margin-right: 6px;
    text-transform: uppercase;
}

.qv-notification-type-venta {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.qv-notification-type-mensaje {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.qv-notification-type-sistema {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Botón de eliminar notificación */
.qv-notification-delete {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
    cursor: pointer;
    filter: invert(1) brightness(1.2);
}

.qv-notification-item:hover .qv-notification-delete {
    opacity: 1;
}

.qv-notification-delete:hover {
    filter: invert(1) brightness(1.4);
}

/* Override para asegurar X blanca en btn-close */
.qv-notification-delete.btn-close {
    filter: invert(1);
}

.qv-notification-delete.btn-close:hover {
    filter: invert(1) brightness(1.2);
}

/* Texto de notificaciones vacías */
.qv-empty-notifications {
    color: #999999 !important;
}

/* Link al historial */
.qv-see-all-notifications {
    color: #d0d0d0 !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.qv-see-all-notifications:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* ========================================
   PÁGINA DE NOTIFICACIONES
   ======================================== */

.qv-notifications-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1929 0%, #1a2f4a 100%);
    padding: 20px 0;
}

.qv-notifications-header {
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 240, 255, 0.2);
    padding: 20px 0;
    margin-bottom: 30px;
}

.qv-notifications-header h1 {
    color: #66f0ff;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0;
}

.qv-notifications-header p {
    color: #a0e8ff;
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Filtros */
.qv-notifications-filters {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 240, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.qv-filter-group {
    margin-bottom: 15px;
}

.qv-filter-group:last-child {
    margin-bottom: 0;
}

.qv-filter-label {
    color: #66f0ff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.qv-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qv-filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(102, 240, 255, 0.3);
    background: transparent;
    color: #a0e8ff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.qv-filter-btn:hover {
    background: rgba(102, 240, 255, 0.1);
    border-color: rgba(102, 240, 255, 0.5);
}

.qv-filter-btn.active {
    background: rgba(102, 240, 255, 0.2);
    color: #66f0ff;
    border-color: #66f0ff;
}

/* Tabla/Lista de notificaciones */
.qv-notifications-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 240, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.qv-notification-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(102, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.qv-notification-row:hover {
    background: rgba(102, 240, 255, 0.05);
}

.qv-notification-row.unread {
    background: rgba(102, 240, 255, 0.08);
    border-left: 4px solid #66f0ff;
}

.qv-notification-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qv-notification-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.qv-notification-action-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #a0e8ff;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(160, 232, 255, 0.3);
}

.qv-notification-action-btn:hover {
    background: rgba(102, 240, 255, 0.1);
    color: #66f0ff;
    border-color: #66f0ff;
}

.qv-notification-action-btn.delete {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.qv-notification-action-btn.delete:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
    border-color: #ff5252;
}

/* Empty state */
.qv-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0e8ff;
}

.qv-empty-state-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.qv-empty-state-title {
    font-size: 1.3rem;
    color: #66f0ff;
    margin-bottom: 8px;
}

.qv-empty-state-text {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Paginación */
.qv-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.qv-pagination-btn {
    padding: 8px 12px;
    border: 1px solid rgba(102, 240, 255, 0.3);
    background: transparent;
    color: #a0e8ff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.qv-pagination-btn:hover:not(:disabled) {
    background: rgba(102, 240, 255, 0.1);
    border-color: #66f0ff;
    color: #66f0ff;
}

.qv-pagination-btn.active {
    background: rgba(102, 240, 255, 0.2);
    color: #66f0ff;
    border-color: #66f0ff;
}

.qv-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Botones de acción global */
.qv-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.qv-action-btn {
    padding: 10px 18px;
    border: 1px solid rgba(102, 240, 255, 0.3);
    background: transparent;
    color: #66f0ff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.qv-action-btn:hover {
    background: rgba(102, 240, 255, 0.1);
    border-color: #66f0ff;
}

.qv-action-btn.danger {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.qv-action-btn.danger:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff5252;
    color: #ff5252;
}

/* Responsive */
@media (max-width: 768px) {
    .qv-notification-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .qv-notifications-actions {
        justify-content: flex-end;
    }
    
    .qv-filter-buttons {
        gap: 6px;
    }
    
    .qv-filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .qv-notification-message {
        font-size: 0.9rem;
    }
}

/* ========================================
   MODAL DE CONFIRMACIÓN
   ======================================== */

.qv-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.qv-modal-content {
    background: rgba(30, 5, 20, 0.98);
    border: 1px solid rgba(255, 26, 117, 0.3);
    border-radius: 10px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.qv-modal-header {
    background: rgba(255, 26, 117, 0.15);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 26, 117, 0.2);
}

.qv-modal-header h3 {
    margin: 0;
    color: #ffd700;
    font-size: 0.9rem;
}

.qv-modal-body {
    padding: 20px;
    color: #f5f5f5;
    font-size: 0.95rem;
    line-height: 1.5;
}

.qv-modal-body p {
    margin: 0;
}

.qv-modal-body strong {
    color: #ffed4e;
}

.qv-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid rgba(255, 26, 117, 0.2);
    justify-content: flex-end;
}

.qv-modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qv-modal-btn.cancel {
    background: rgba(100, 100, 100, 0.3);
    color: #d0d0d0;
}

.qv-modal-btn.cancel:hover {
    background: rgba(100, 100, 100, 0.5);
    color: #fff;
}

.qv-modal-btn.confirm {
    background: rgba(255, 26, 117, 0.3);
    color: #ff1a75;
}

.qv-modal-btn.confirm:hover {
    background: rgba(255, 26, 117, 0.5);
    color: #ffed4e;
}

/* Precio del item */
.qv-item-price {
    display: block;
    margin-top: 6px;
    color: #ffed4e;
    font-weight: 600;
    font-size: 0.9rem;
}


