/* Toast Messages */
.ark-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: auto; /* Ensure container doesn't take full width */
}

.ark-toast {
    min-width: 300px;
    max-width: 480px;
    width: auto; /* Let the toast size to its content */
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: arkSlideIn 0.3s ease-out forwards;
    background: white;
    border-left: 4px solid;
}

.ark-toast-success {
    border-left-color: #10B981;
}

.ark-toast-success .ark-toast-icon {
    color: #10B981;
}

.ark-toast-error {
    border-left-color: #EF4444;
}

.ark-toast-error .ark-toast-icon {
    color: #EF4444;
}

.ark-toast-info {
    border-left-color: #3B82F6;
}

.ark-toast-info .ark-toast-icon {
    color: #3B82F6;
}

.ark-toast-warning {
    border-left-color: #F59E0B;
}

.ark-toast-warning .ark-toast-icon {
    color: #F59E0B;
}

.ark-toast-content {
    flex: 1;
}

.ark-toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ark-toast-message {
    font-size: 0.875rem;
    color: #6B7280;
}

.ark-toast-close {
    color: #9CA3AF;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.ark-toast-close:hover {
    color: #4B5563;
}

.ark-toast-hiding {
    animation: arkSlideOut 0.3s ease-out forwards;
}

@keyframes arkSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes arkSlideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.ark-loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    width: 16px;
    height: 16px;
    animation: arkSpin 1s linear infinite;
    display: inline-block;
}

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

.ark-animate-spin {
    animation: arkSpin 1s linear infinite;
}