/* --- Loader Styles --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f4f9; /* Match body background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #0b57d0; /* Use a theme color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-family: 'Google Sans', sans-serif;
    color: #444746;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- Default Styles (for screens wider than 800px) --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f9;
    font-family: 'Roboto', sans-serif;
}

.container {
    width: 100%;
    max-width: 840px; 
    padding: 20px;
    box-sizing: border-box;
}

.main-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 64px 48px; /* Increased vertical padding */
    width: 100%;
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-section {
    flex: 1;
    padding-right: 40px;
    box-sizing: border-box;
}

h1 {
    font-family: 'Google Sans', sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: #1f1f1f;
    line-height: 1.25;
    margin: 0;
}

.image-section {
    flex: 1;
    text-align: center;
}

.image-section img {
    max-width: 250px;
    margin-bottom: 20px;
}

.image-section p {
    font-size: 14px;
    color: #444746;
    margin: 0;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 48px;
}

.button-1 {
    font-family: 'Google Sans', sans-serif;
    color: #0b57d0;
    background-color: transparent; /* Ensure button background is clear */
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 100px;
    transition: background-color 0.2s;
}

.button-1:hover {
    background-color: #f5f8fd;
}

.continue-button {
    background-color: #0b57d0;
    color: white;
    border: none;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    margin-left: 16px;
    transition: background-color 0.2s;
}

.continue-button:hover {
    background-color: #0b57d0;
}

.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    margin-top: 24px;
    box-sizing: border-box;
}

.language-selector select {
    font-size: 12px;
    border: none;
    background: transparent;
    color: #444746;
    padding: 8px 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 12px;
    color: #444746;
    text-decoration: none;
}

/* Status area for errors and results */
.status-area {
    margin-top: 16px; /* Space from the title */
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    word-wrap: break-word;
    text-align: left;
    display: none; /* Hidden by default */
}

.status-area.error {
    display: block;
    background-color: transparent; /* Removed background */
    border: none; /* Removed border */
    color: #d93025; /* More elegant error color */
    font-size: 14px;
}

.status-area code {
    display: block;
    padding: 10px;
    margin-top: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}


/* --- Responsive Styles (for screens 800px wide or smaller) --- */
@media (max-width: 800px) {
    .content-wrapper {
        flex-direction: column;
    }

    .main-card {
        padding: 40px;
        text-align: center;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .text-section {
        padding-right: 0;
    }
    
    .image-section img {
        max-width: 240px;
    }

    .image-section {
        margin-bottom: 24px;
    }
    
    .status-area {
        text-align: center;
    }

    .button-container {
        flex-direction: row-reverse; /* Swaps button order */
        justify-content: center;
        margin-top: 32px;
    }
    
    .continue-button {
        margin-left: 8px; /* Reduce space between buttons on mobile */
    }

    .footer {
        padding: 0 20px;
    }
}


