/* ==========================================
   Notifications Page - Modern Design
   ========================================== */

/* Notifications Container */
.notifications-page {
    padding: 0;
    min-height: 100vh;
    background: var(--bg-gradient-light);
}

.dark-mode .notifications-page {
    background: var(--bg-gradient-dark);
}

/* Premium Header */
.notifications-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.notifications-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.notifications-header-content {
    position: relative;
    z-index: 1;
}

.notifications-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notifications-header p {
    opacity: 0.95;
    font-size: 0.95rem;
}

/* Filter Tabs */
.notifications-filters {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--surface-light);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.dark-mode .notifications-filters {
    background: var(--surface-dark);
}

.filter-tab {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 2px solid var(--surface-variant-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-tab .badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    min-width: 20px;
    text-align: center;
}

.filter-tab:not(.active) .badge {
    background: #667eea;
    color: white;
}

/* Notifications Container */
.notifications-container {
    padding: 20px;
}

/* Notification Item */
.notification-item {
    padding: 0;
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
    background: var(--surface-light);
    border: 1px solid transparent;
    transition: var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.dark-mode .notification-item {
    background: var(--surface-dark);
}

.notification-item.unread {
    background: linear-gradient(135deg, #F5F5FF 0%, #FAFAFA 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.dark-mode .notification-item.unread {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, var(--surface-dark) 100%);
}

.notification-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gold-primary);
}

/* Notification Color Bar */
.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-blue);
    transition: var(--transition-fast);
}

.notification-item.type-success::before {
    background: var(--accent-green);
}

.notification-item.type-warning::before {
    background: var(--warning-orange);
}

.notification-item.type-error::before {
    background: var(--error-red);
}

.notification-item.type-info::before {
    background: var(--accent-blue);
}

.notification-item.type-harvest::before {
    background: var(--harvest-green);
}

.notification-item.type-package::before {
    background: var(--package-blue);
}

.notification-item.type-wheel::before {
    background: var(--wheel-orange);
}

/* Notification Content */
.notification-content {
    padding: 16px;
    display: flex;
    align-items: start;
    gap: 16px;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.notification-item.type-success .notification-icon {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.notification-item.type-warning .notification-icon {
    background: linear-gradient(135deg, var(--warning-orange) 0%, var(--gold-dark) 100%);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.notification-item.type-error .notification-icon {
    background: linear-gradient(135deg, var(--error-red) 0%, var(--error-red-dark) 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.notification-icon .material-icons {
    font-size: 24px;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode .notification-title {
    color: var(--text-light);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-time .material-icons {
    font-size: 14px;
}

.notification-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    border: 2px solid var(--surface-light);
    animation: pulse 2s ease-in-out infinite;
}

.dark-mode .notification-badge {
    border-color: var(--surface-dark);
}

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

.notifications-empty .material-icons {
    font-size: 96px;
    color: var(--surface-variant-light);
    margin-bottom: 24px;
    opacity: 0.5;
}

.dark-mode .notifications-empty .material-icons {
    color: var(--surface-variant-dark);
}

.notifications-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.dark-mode .notifications-empty h3 {
    color: var(--text-light);
}

.notifications-empty p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Loading State */
.notifications-loading {
    padding: 20px;
}

.notification-skeleton {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.dark-mode .notification-skeleton {
    background: var(--surface-dark);
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E0E0E0 25%, #F5F5F5 50%, #E0E0E0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #E0E0E0 25%, #F5F5F5 50%, #E0E0E0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

.skeleton-line.title {
    width: 60%;
    height: 16px;
}

.skeleton-line.message {
    width: 100%;
}

.skeleton-line.time {
    width: 30%;
    height: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Action Buttons */
.notifications-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mark-all-read-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: var(--transition-fast);
}

.mark-all-read-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mark-all-read-btn:active {
    transform: translateY(-1px) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-header {
        padding: 24px 16px;
    }
    
    .notifications-filters {
        padding: 16px;
    }
    
    .notifications-container {
        padding: 16px;
    }
    
    .notification-content {
        padding: 14px;
        gap: 12px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .notification-icon .material-icons {
        font-size: 20px;
    }
}
