/* Notification System Styles */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    width: auto;
    min-width: 300px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-left: 4px solid #007bff;
    position: relative;
}

.notification-success .notification-content {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.notification-error .notification-content {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.notification-info .notification-content {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    margin-right: 12px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Success notification specific styles */
.notification-success .notification-message {
    color: #155724;
}

.notification-success .notification-close {
    color: #155724;
}

.notification-success .notification-close:hover {
    background-color: rgba(21, 87, 36, 0.1);
}

/* Error notification specific styles */
.notification-error .notification-message {
    color: #721c24;
}

.notification-error .notification-close {
    color: #721c24;
}

.notification-error .notification-close:hover {
    background-color: rgba(114, 28, 36, 0.1);
}

/* Info notification specific styles */
.notification-info .notification-message {
    color: #0c5460;
}

.notification-info .notification-close {
    color: #0c5460;
}

.notification-info .notification-close:hover {
    background-color: rgba(12, 84, 96, 0.1);
}

/* Icon styles (optional for future enhancement) */
.notification-content::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.notification-success .notification-content::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

.notification-error .notification-content::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #dc3545;
    font-size: 16px;
}

.notification-info .notification-content::before {
    content: 'ℹ';
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #17a2b8;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification-content {
        padding: 14px 16px;
    }
    
    .notification-message {
        font-size: 13px;
        margin-right: 8px;
    }
    
    .notification-close {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }
}

/* Multiple notifications stacking */
.notification:nth-child(n+2) {
    top: calc(20px + (80px * var(--notification-index, 1)));
}

@media (max-width: 768px) {
    .notification:nth-child(n+2) {
        top: calc(10px + (70px * var(--notification-index, 1)));
    }
}

/* Animation for when notifications stack */
.notification {
    --notification-index: 0;
}
