/* Grammar General Questions Exercise Styles (view-grammar-general.css) */

/* --- Main Container --- */
.ggg-general-exercise-container {
    max-width: 800px; 
    margin: 0 auto; /* Center the wrapper */
    padding: 20px 25px; /* Restored padding */
    background-color: #fff; /* Restored background */
    border: 1px solid #e0e0e0; /* Restored border */
    border-radius: 8px; /* Restored border-radius */
    box-shadow: 0 3px 10px rgba(0,0,0,0.05); /* Restored box-shadow */
    font-family: sans-serif; 
    line-height: 1.6; 
}

/* --- Title & Instructions --- */
.ggg-general-exercise-container .ggg-exercise-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.8em;
}
.ggg-general-exercise-container .ggg-exercise-instructions {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1em;
}
.geg-error { /* General error class */
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    border-radius: 4px;
    margin: 15px 0;
}

/* --- Answer Mode Toggle Switch --- */
.ggg-answer-mode-toggle-switch {
    display: inline-flex; /* Use inline-flex to keep it centered if ggg-controls is text-align: center */
    border-radius: 5px;
    overflow: hidden; /* To make child border-radius work nicely */
    border: 1px solid var(--steps-purple-dark, #800080); /* Overall border */
}

.ggg-toggle-option {
    padding: 8px 15px;
    cursor: pointer;
    background-color: var(--steps-purple-light, #f2e6f2); /* Light purple */
    color: var(--steps-purple-dark, #800080); /* Dark purple text */
    border: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    outline: none;
}

.ggg-toggle-option:not(:last-child) {
    border-right: 1px solid var(--steps-purple-dark, #800080); /* Separator */
}

.ggg-toggle-option.active {
    background-color: var(--steps-purple-dark, #800080); /* Dark purple */
    color: #fff; /* White text */
    font-weight: bold;
}

.ggg-toggle-option:hover:not(.active) {
    background-color: #e0d0e0; /* Slightly darker light purple for hover on non-active */
}


/* --- Form & Question Styling --- */
.ggg-general-form {
    margin-top: 20px;
}

.ggg-question-container {
    margin-bottom: 25px; /* More space between questions */
    padding: 15px;
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid var(--steps-purple-dark, #800080); /* Dark purple border all around */
    border-radius: 5px;
}

.ggg-question-content {
    margin-bottom: 10px; /* Space between question and answer area */
    display: flex; /* Align number and text */
    align-items: baseline;
}

.ggg-question-number {
    font-weight: bold;
    margin-right: 8px;
    color: #555;
    min-width: 1.5em; /* Ensure alignment */
}

.ggg-question-text {
    color: #333;
    display: block; /* Make label block for association */
    flex-grow: 1;
    cursor: default; /* Not clickable */
}
.ggg-question-text p {
    margin: 0.5em 0;
}

/* --- Answer Area --- */
.ggg-answer-area {
    margin-top: 5px;
}

.ggg-answer-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    line-height: 1.5;
    box-sizing: border-box; /* Include padding and border in width */
    transition: border-color 0.3s ease;
    resize: vertical; /* Allow vertical resize */
}

.ggg-answer-textarea:focus {
    border-color: #800080; /* Purple */
    outline: none;
    box-shadow: 0 0 0 2px rgba(128, 0, 128, 0.2);
}

/* --- Main Buttons Area (Placeholder) --- */
.ggg-main-buttons {
    /* Styles for future buttons if needed */
}
.ggg-save-button { /* Example style */
    padding: 10px 25px;
    background-color: #28a745; /* Green */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.ggg-save-button:hover {
    background-color: #218838;
}


/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .ggg-general-exercise-container {
        padding: 15px;
    }
    .ggg-general-exercise-container .ggg-exercise-title {
        font-size: 1.5em;
    }
    .ggg-general-exercise-container .ggg-exercise-instructions {
        font-size: 1em;
    }
    .ggg-question-container {
        padding: 10px;
    }
    .ggg-answer-textarea {
        font-size: 0.95em;
    }
}
