/* Notification System Styles */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px;
    pointer-events: auto;
    position: relative;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Notification Types */
.notification.success {
    border-left: 4px solid #28a745;
    background: #f8fff9;
}

.notification.error {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
}

.notification.warning {
    border-left: 4px solid #ffc107;
    background: #fffdf5;
}

.notification.info {
    border-left: 4px solid #17a2b8;
    background: #f5fdff;
}

/* Notification Content */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Notification Icons */
.notification-icon {
    font-size: 16px;
}

.notification.success .notification-icon {
    color: #28a745;
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification.warning .notification-icon {
    color: #ffc107;
}

.notification.info .notification-icon {
    color: #17a2b8;
}

/* Progress Bar for Auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    transition: width linear;
}

.notification.success .notification-progress {
    background: #28a745;
}

.notification.error .notification-progress {
    background: #dc3545;
}

.notification.warning .notification-progress {
    background: #ffc107;
}

.notification.info .notification-progress {
    background: #17a2b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
}

/* Animation for multiple notifications */
.notification-container .notification:nth-child(1) {
    animation-delay: 0s;
}

.notification-container .notification:nth-child(2) {
    animation-delay: 0.1s;
}

.notification-container .notification:nth-child(3) {
    animation-delay: 0.2s;
}

.notification-container .notification:nth-child(4) {
    animation-delay: 0.3s;
}

.notification-container .notification:nth-child(5) {
    animation-delay: 0.4s;
}
