/* ============================================
   NOTICE.CSS - Unified Notification Component
   ============================================ */

/* Notification Strip */
.notification-strip {
    display: none;
    position: fixed;
    top: 70px; /* Below navbar which is 70px high */
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.notification-strip.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Notification Types */
.notification-strip.error {
    background-color: var(--color-danger);
}

.notification-strip.warning {
    background-color: var(--color-warning);
}

.notification-strip.success {
    background-color: var(--color-success);
}

/* Notification Content */
.notification-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.notification-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.notification-message {
    font-size: 0.938rem;
    font-weight: 500;
    line-height: 1.5;
    color: white;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    opacity: 0.9;
}

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

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

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

.notification-strip.closing {
    animation: slideUp 0.3s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-strip {
        padding: 0.875rem 1rem;
    }
    
    .notification-icon {
        font-size: 1.125rem;
    }
    
    .notification-message {
        font-size: 0.875rem;
    }
    
    .notification-close {
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }
}
