/* Notification Bar Styles */
.notification-bar {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

/* Push body content down when notification bar is present */
body.has-notification {
    padding-top: 40px;
}

/* Adjust header position when notification is present */
body.has-notification .light_header.fixed-header {
    top: 60px;
}

/* Adjust main content when notifications are present */
body.has-notification .main-content {
    margin-top: 0;
}

/* Remove header top adjustment when no notifications */
body:not(.has-notification) .light_header.fixed-header {
    top: 0;
}

/* Ensure smooth transitions */
.light_header.fixed-header {
    transition: top 0.3s ease;
}

body {
    transition: padding-top 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-slider {
    display: flex;
    overflow: hidden;
    position: relative;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 0 15px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item.priority-urgent {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.notification-item.priority-high {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.notification-item.priority-medium {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.notification-item.priority-low {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.notification-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.notification-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.notification-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.notification-link:hover {
    color: #fbbf24;
    text-decoration: none;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

/* Multiple notifications cycling */
.notification-item {
    display: none;
}

.notification-item.active {
    display: flex;
}

/* Notification animations */
@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Responsive design for notifications */
@media (max-width: 768px) {
    .notification-text {
        font-size: 0.8rem;
    }
    
    .notification-content {
        gap: 8px;
    }
    
    .notification-item {
        padding: 0 10px;
    }
    
    /* Adjust mobile spacing */
    body.has-notification {
        padding-top: 35px;
    }
    
    body.has-notification .light_header.fixed-header {
        top: 35px;
    }
    
    body:not(.has-notification) .light_header.fixed-header {
        top: 0;
    }
}

@media (max-width: 480px) {
    .notification-text strong {
        display: block;
        margin-bottom: 2px;
    }
    
    .notification-link {
        margin-left: 0;
        margin-top: 2px;
    }
    
    /* Smaller notification bar on mobile */
    body.has-notification {
        padding-top: 30px;
    }
    
    body.has-notification .light_header.fixed-header {
        top: 30px;
    }
}
