/* CSS file for Upay Gateway Theme */

:root {
    --primary-color: #2A225F;
    /* Corporate Blue/Purple fallback */
    --background-color: #f6f9fc;
    --text-color: #32325d;
    --text-muted: #8898aa;
    --card-bg: #ffffff;
    --error-color: #e25950;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.gateway-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    padding: 40px 30px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* Header */
.gateway-header {
    margin-bottom: 30px;
}

.secure-icon {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-inline: auto;
}

.gateway-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

/* Body */
.gateway-body {
    min-height: 150px;
}

.status-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.status-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Spinner Animation */
.spinner {
    margin: 30px auto;
    width: 70px;
    text-align: center;
}

.spinner>div {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.gateway-indicator {
    font-size: 14px;
    color: var(--primary-color);
    background: rgba(84, 105, 212, 0.1);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}

/* Error UI */
.status-invalid {
    animation: popIn 0.3s ease-out;
}

.error-icon svg {
    width: 50px;
    height: 50px;
    color: var(--error-color);
    margin-bottom: 15px;
}

.error-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--error-color);
    margin-bottom: 10px;
}

.error-message {
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    /* Darker grey/slate instead of faded muted text */
    line-height: 1.6;
}

/* Footer */
.gateway-footer {
    margin-top: 40px;
    border-top: 1px solid #e6ebf1;
    padding-top: 20px;
}

.gateway-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fallback button */
.btn-redirect {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-redirect:hover {
    background-color: #1e174b;
    /* slightly darker shade */
}