/* Notification System Styles */

.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
    align-items: flex-end;
}

.notification {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.notification:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.notification.hide {
    animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Notification Types */
.notification.info {
    border-left-color: var(--primary-light, #269ead);
    background: linear-gradient(135deg, rgba(38, 158, 173, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.notification-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #fff;
    animation: pulse 2s infinite;
}

.notification.info .notification-icon {
    background: linear-gradient(135deg, var(--primary-color, #204562) 0%, var(--primary-light, #269ead) 100%);
}

.notification.warning .notification-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.notification.success .notification-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, #dc3545 0%, #e91e63 100%);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color, #333);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-message {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    padding: 0;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light, #269ead) 0%, var(--primary-color, #204562) 100%);
    animation: progressBar linear forwards;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(38, 158, 173, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(38, 158, 173, 0);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 0.875rem 1rem;
    }
    
    .notification-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
    }
    
    .notification-title {
        font-size: 0.9375rem;
    }
    
    .notification-message {
        font-size: 0.8125rem;
    }
}

/* Sound indicator */
.notification.has-sound::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light, #269ead);
    animation: soundPulse 1s infinite;
}

@keyframes soundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

