/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.toast {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(104, 175, 176, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

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

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

/* Toast Types */
.toast.success {
    border-color: #68AFB0;
    background: rgba(26, 26, 26, 0.95);
}

.toast.error {
    border-color: #ff4757;
    background: rgba(26, 26, 26, 0.95);
}

/* Toast Icon */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.toast.success .toast-icon {
    background: #68AFB0;
    color: #ffffff;
}

.toast.error .toast-icon {
    background: #ff4757;
    color: #ffffff;
}

/* Toast Content */
.toast-content {
    flex: 1;
    color: #ffffff;
}

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

.toast-message {
    font-size: 0.875rem;
    color: #cccccc;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.toast-close:focus {
    outline: 2px solid #68AFB0;
    outline-offset: 2px;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #68AFB0;
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    animation: progress 4s linear forwards;
}

.toast.error .toast-progress {
    background: #ff4757;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .toast-title {
        font-size: 0.95rem;
    }
    
    .toast-message {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 70px;
        right: 5px;
        left: 5px;
    }
    
    .toast {
        padding: 0.875rem;
        border-radius: 10px;
    }
    
    .toast-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .toast-title {
        font-size: 0.9rem;
    }
    
    .toast-message {
        font-size: 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 0.2s ease;
    }
    
    .toast-progress {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .toast {
        border-width: 2px;
    }
    
    .toast.success {
        border-color: #ffffff;
        background: #000000;
    }
    
    .toast.error {
        border-color: #ff0000;
        background: #000000;
    }
}
