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

.premium-toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 400px;
    background: rgba(25, 28, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #F1F3F8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Archivo', sans-serif;
    display: flex;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}

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

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

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

.premium-toast.warning {
    border-left: 4px solid #F59E0B;
}

.toast-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success .toast-icon { color: #10B981; }
.error .toast-icon { color: #EF4444; }
.warning .toast-icon { color: #F59E0B; }

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

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.toast-message {
    font-size: 13px;
    color: rgba(241, 243, 248, 0.7);
    line-height: 1.4;
}

.toast-close {
    cursor: pointer;
    background: none;
    border: none;
    color: rgba(241, 243, 248, 0.4);
    font-size: 16px;
    padding: 0;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #F1F3F8;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}

.success .toast-progress { background: #10B981; }
.error .toast-progress { background: #EF4444; }
.warning .toast-progress { background: #F59E0B; }

/* Micro-animations for the Submit Button */
.button.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.button.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

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

/* Access Key setup banner styling */
.access-key-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #F59E0B;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeIn 0.5s ease-out;
}

.access-key-banner a {
    color: #F59E0B;
    text-decoration: underline;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
