.loading {
    display: none;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.loading.show {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    margin-bottom: 10px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.success .icon {
    color: #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.error .icon {
    color: #ef4444;
}

.toast .icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast .message {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
}

.toast .close {
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    flex-shrink: 0;
}

.toast .close:hover {
    color: #1f2937;
}