/* ============================================================
   PAGINA NOTIFICHE DEDICATA - TMC TICKETS
   File: notifications-page.css
   ============================================================ */

/* Container Pagina */
.notifications-page-header {
    background: white;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
}

.notifications-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.notifications-actions .btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filtri */
.notifications-filters {
    display: flex;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    margin-bottom: 0;
}

.filter-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: white;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.filter-btn:hover {
    background: #f8f9fa;
}

.filter-btn.active {
    border-bottom-color: #c62828;
    color: #c62828;
    font-weight: 600;
}

.filter-icon {
    font-size: 18px;
}

.filter-count {
    background: #e0e0e0;
    color: #666;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.filter-btn.active .filter-count {
    background: #c62828;
    color: white;
}

/* Container Lista */
.notifications-page-container {
    background: #f5f5f5;
    min-height: calc(100vh - 250px);
}

.notifications-page-list {
    padding: 10px;
}

/* Item Notifica */
.notification-page-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.notification-page-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.notification-page-item.unread {
    background: #e8f4ff;
    border-left: 4px solid #2196F3;
}

.notification-page-item.unread::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2196F3;
    border-radius: 50%;
}

/* Icona */
.notification-page-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
}

/* Contenuto */
.notification-page-content {
    flex: 1;
    min-width: 0;
}

.notification-page-message {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}

.notification-page-time {
    font-size: 12px;
    color: #999;
}

/* Azioni */
.notification-page-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-page-item:hover .notification-page-actions {
    opacity: 1;
}

.notification-page-action {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.notification-page-action:hover {
    transform: scale(1.1);
}

.notification-page-action.mark-read:hover {
    background: #4CAF50;
    color: white;
}

.notification-page-action.delete:hover {
    background: #f44336;
    color: white;
}

/* Empty State */
.notifications-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.notifications-empty p {
    color: #999;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notifications-page-header {
        padding: 15px;
    }
    
    .notifications-actions {
        width: 100%;
    }
    
    .notifications-actions .btn-sm {
        flex: 1;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .filter-text {
        display: none; /* Nasconde testo su mobile piccolo */
    }
    
    .notification-page-item {
        padding: 12px;
        position: relative;
    }
    
    .notification-page-icon {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .notification-page-message {
        font-size: 13px;
    }
    
    .notification-page-actions {
        opacity: 1; /* Sempre visibili su mobile */
    }
}

@media (max-width: 480px) {
    .filter-icon {
        font-size: 20px;
    }
    
    .notifications-page-list {
        padding: 5px;
    }
    
    .notification-page-item {
        margin-bottom: 8px;
    }
}

/* Animazioni */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-page-item {
    animation: slideIn 0.3s ease-out;
}

/* Loading State */
.notifications-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.notifications-loading::after {
    content: '⏳';
    font-size: 32px;
    display: block;
    margin-top: 10px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
