/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: var(--panel, #1a1a1a);
    border: 1px solid rgba(246, 140, 35, 0.3);
    border-radius: var(--radius, 12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text, #F68C23);
    margin: 0;
}

.toast-message {
    font-size: 0.9rem;
    color: rgba(246, 140, 35, 0.8);
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(246, 140, 35, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(246, 140, 35, 0.1);
    color: var(--text, #F68C23);
}

/* Toast Types */
.toast.success {
    border-color: rgba(0, 169, 200, 0.5);
}

.toast.success .toast-icon {
    color: #00A9C8;
}

.toast.success .toast-title {
    color: #00A9C8;
}

.toast.error {
    border-color: rgba(227, 34, 40, 0.5);
}

.toast.error .toast-icon {
    color: #E32228;
}

.toast.error .toast-title {
    color: #E32228;
}

.toast.warning {
    border-color: rgba(255, 193, 7, 0.5);
}

.toast.warning .toast-icon {
    color: #FFC107;
}

.toast.warning .toast-title {
    color: #FFC107;
}

.toast.info {
    border-color: rgba(246, 140, 35, 0.5);
}

.toast.info .toast-icon {
    color: #F68C23;
}

.toast.info .toast-title {
    color: #F68C23;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Animation for multiple toasts */
.toast:not(:last-child) {
    margin-bottom: 0;
}