.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

/* Notification Styles */
.notification {
    background: white;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #ddd;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

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

.notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: inherit;
    border-radius: 0 0 16px 16px;
    animation: progress linear;
}

/* Notification Types */
.notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.notification.success::before {
    background: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.notification.error::before {
    background: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.notification.warning::before {
    background: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
}

.notification.info::before {
    background: #17a2b8;
}

.notification.loading {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.notification.loading::before {
    background: #6c757d;
}

/* Notification Icon */
.notification-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.success .notification-icon::before { content: '✅'; }
.error .notification-icon::before { content: '❌'; }
.warning .notification-icon::before { content: '⚠️'; }
.info .notification-icon::before { content: 'ℹ️'; }
.loading .notification-icon::before { content: '⏳'; }

/* Notification Content */
.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.notification-message {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Progress Animation */
@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sound-toggle:hover {
    transform: scale(1.1);
}

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

    .notification {
        padding: 1rem;
    }

    .demo-buttons {
        grid-template-columns: 1fr;
    }
}

/* Custom Notification Styles */
.notification.custom {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-left-color: #ff6b6b;
}

.notification.custom .notification-title,
.notification.custom .notification-message {
    color: white;
}

.notification.custom .notification-close {
    color: rgba(255, 255, 255, 0.8);
}

.notification.custom .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Notification Positions */
.notification-container.top-left {
    top: 20px;
    left: 20px;
    right: auto;
}

.notification-container.bottom-right {
    top: auto;
    bottom: 20px;
    right: 20px;
}

.notification-container.bottom-left {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: auto;
}

/* Settings Panel */
.settings-panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.settings-input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}
