/* form-handler.css - Premium form styling, notifications, and submission loader */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* Dynamic Toast Notification Styling */
#antigravity-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
}

.antigravity-toast {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(26, 21, 21, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-left: 5px solid #ff4a5a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.antigravity-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 74, 90, 0.15);
    color: #ff4a5a;
    font-size: 18px;
    flex-shrink: 0;
}

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

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

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

.antigravity-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.antigravity-toast-close:hover {
    color: #ffffff;
}

/* Screen overlay & Modal Loader */
#antigravity-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-family: 'Outfit', sans-serif;
}

#antigravity-modal-overlay.show {
    opacity: 1;
}

.antigravity-modal-card {
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.9) 0%, rgba(12, 12, 18, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 48px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    color: #ffffff;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#antigravity-modal-overlay.show .antigravity-modal-card {
    transform: scale(1);
}

/* Premium Spinner */
.antigravity-spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 28px auto;
}

.antigravity-spinner-track {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.antigravity-spinner-blade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #ff4a5a;
    border-right-color: #ff6b3b;
    border-radius: 50%;
    animation: antigravity-rotate 1.2s linear infinite;
}

.antigravity-spinner-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 74, 90, 0.5);
}

.antigravity-modal-title {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff 30%, #ff8080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.antigravity-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    line-height: 1.5;
}

.antigravity-modal-status {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 74, 90, 0.08);
    border: 1px solid rgba(255, 74, 90, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #ff8080;
    letter-spacing: 0.5px;
}

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