﻿.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 500000;
    max-width: 400px;
}

.notification {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    background: white;
    border-top: 4px solid;
}

/* Responsive minimum widths for different screen sizes */
@media (min-width: 576px) {
    .notification {
        min-width: 280px; /* Small devices */
    }
}

@media (min-width: 768px) {
    .notification {
        min-width: 300px; /* Medium devices */
    }
}

@media (min-width: 992px) {
    .notification {
        min-width: 320px; /* Large devices */
    }
}

@media (min-width: 1200px) {
    .notification {
        min-width: 350px; /* Extra large devices */
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.notification-body {
    padding: 16px;
    background: white;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Error Notification */
.notification.error {
    border-top-color: #dc3545;
}

.notification.error .notification-title {
    color: #dc3545;
}

/* Warning Notification */
.notification.warning {
    border-top-color: #ffc107;
}

.notification.warning .notification-title {
    color: #ffc107;
}

/* Success Notification */
.notification.success {
    border-top-color: #198754;
}

.notification.success .notification-title {
    color: #198754;
}

/* Info Notification */
.notification.info {
    border-top-color: #0dcaf0;
}

.notification.info .notification-title {
    color: #0dcaf0;
}

.error-list {
    margin: 0;
    padding-left: 18px;
}

.error-list li {
    margin-bottom: 6px;
    color: #495057;
}

.error-count {
    display: inline-block;
    background-color: currentColor;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hover effects for better interactivity */
.notification:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}
