/* Notification Panel Main Container */
.notification-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.notification-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-title i {
    color: #3498db;
    font-size: 1.3rem;
}

.notification-controls {
    display: flex;
    gap: 10px;
}

.notification-filter {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-filter:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.notification-filter.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.notification-filter.critical.active {
    background: #e74c3c;
    border-color: #e74c3c;
}

.notification-filter.high.active {
    background: #f39c12;
    border-color: #f39c12;
}

.notification-filter.active-alerts.active {
    background: #e67e22;
    border-color: #e67e22;
}

.count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.notification-filter.active .count {
    background: rgba(255, 255, 255, 0.3);
}

.notification-filter:not(.active) .count {
    background: #3498db;
    color: white;
}

/* Summary Cards */
.notification-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #6c757d;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.summary-card.critical {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fdf2f2 0%, #fde8e8 100%);
}

.summary-card.high {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fefbf2 0%, #fef5e7 100%);
}

.summary-card.action {
    border-left-color: #e67e22;
    background: linear-gradient(135deg, #fef9f2 0%, #fef1e7 100%);
}

.summary-card.escalated {
    border-left-color: #9b59b6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.summary-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.summary-card.critical .summary-icon {
    color: #e74c3c;
}

.summary-card.high .summary-icon {
    color: #f39c12;
}

.summary-card.action .summary-icon {
    color: #e67e22;
}

.summary-card.escalated .summary-icon {
    color: #9b59b6;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: 500;
}

/* Notification List */
.notification-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: #ffffff;
    border-radius: 10px;
    border-left: 4px solid #bdc3c7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.notification-item.critical {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fdf8f8 100%);
}

.notification-item.error {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fdf8f8 100%);
}

.notification-item.warning {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.notification-item.info {
    border-left-color: #3498db;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}

.notification-item.resolved {
    opacity: 0.5;
    transform: scale(0.95);
}

.notification-item.dismissed {
    opacity: 0;
    transform: translateX(100px);
}

/* Notification Indicator */
.notification-indicator {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.notification-item.critical .notification-indicator {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.notification-item.error .notification-indicator {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.notification-item.warning .notification-indicator {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.notification-item.info .notification-indicator {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

/* Notification Content */
.notification-content {
    flex: 1;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.notification-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.notification-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.notification-time {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.escalation-badge,
.action-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.escalation-badge {
    background: #9b59b6;
    color: white;
}

.action-badge {
    background: #e67e22;
    color: white;
}

.notification-message {
    color: #5a6c7d;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.view {
    background: #3498db;
    color: white;
}

.action-btn.resolve {
    background: #27ae60;
    color: white;
}

.action-btn.escalate {
    background: #9b59b6;
    color: white;
}

.action-btn.dismiss {
    background: #95a5a6;
    color: white;
}

/* Live Alert Popup */
.live-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 400px;
    border-left: 5px solid #e74c3c;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.live-alert.warning {
    border-left-color: #f39c12;
}

.live-alert.success {
    border-left-color: #27ae60;
}

.live-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.live-alert-icon {
    font-size: 1.5rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.live-alert.warning .live-alert-icon {
    color: #f39c12;
}

.live-alert.success .live-alert-icon {
    color: #27ae60;
}

.live-alert-text {
    flex: 1;
}

.live-alert-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.live-alert-message {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.live-alert-actions {
    display: flex;
    gap: 10px;
}

.live-alert-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.live-alert-btn.acknowledge {
    background: #27ae60;
    color: white;
}

.live-alert-btn.dismiss {
    background: #95a5a6;
    color: white;
}

.live-alert-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .notification-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .notification-filter {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    .notification-item {
        padding: 15px;
    }
    
    .notification-item-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .notification-meta {
        flex-wrap: wrap;
    }
    
    .live-alert {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .notification-summary {
        grid-template-columns: 1fr;
    }
    
    .notification-actions {
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
        min-width: 80px;
    }
}

/* Fade in animation class */
.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}
