/* Grammar Sentence Transformation Exercise Styles (view-grammar-transformation.css) */

/* --- Main Container --- */
.ggt-transformation-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 --- */
.ggt-transformation-exercise-container .ggt-exercise-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.8em;
}
.ggt-transformation-exercise-container .ggt-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;
}

/* --- Form & Question Styling --- */
.ggt-transformation-form {
    margin-top: 20px;
}

.ggt-question-container {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid var(--steps-purple-dark, #800080); /* Dark purple border all around */
    border-radius: 5px;
}

.ggt-original-sentence {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    color: #333;
}

/* Re-use ggg number style if desired */
/* .ggg-question-number { ... } */

.ggt-sentence-text {
    flex-grow: 1;
}

.ggt-instruction {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: var(--steps-purple-light, #f2e6f2); /* Light purple from steps.css */
    border-left: 3px solid var(--steps-purple-dark, #800080); /* Dark purple from steps.css */
    font-size: 0.95em;
    color: #333; /* Existing text color, should be fine with light purple */
}
.ggt-instruction strong {
    color: #343a40;
}

/* --- Answer Area --- */
.ggt-answer-area {
    margin-top: 5px;
}

.ggt-answer-input { /* New style for input */
    width: 100%;
    padding: 8px 10px; /* Adjusted padding for single line */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    line-height: 1.4; /* Adjusted line-height */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    /* No resize property for input type="text" */
}

.ggt-answer-input:focus { /* New focus style for input */
    border-color: #800080; /* Purple */
    outline: none;
    box-shadow: 0 0 0 2px rgba(128, 0, 128, 0.2);
}

/* --- Feedback Area --- */
.ggt-feedback {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    display: flex;
    align-items: center;
    min-height: 1.5em; /* Ensure space */
}

.ggt-feedback-icon {
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 10px;
    min-width: 1.2em;
    text-align: center;
    line-height: 1;
    user-select: none;
}

.ggt-check-single-answer,
.ggt-show-single-answer {
    padding: 3px 8px;
    border: none;
    cursor: pointer;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    line-height: normal;
    margin-left: 5px;
}

.ggt-check-single-answer {
    background-color: #800080; /* Purple */
    color: white;
}
.ggt-check-single-answer:hover {
    background-color: #6a006a;
}

.ggt-show-single-answer {
    background-color: #007bff; /* Blue */
    color: white;
}
.ggt-show-single-answer:hover {
    background-color: #0056b3;
}

/* Correct Answer Display Area */
.ggt-correct-answer-wrapper {
    background-color: #f0f8ff;
    border-left: 4px solid #17a2b8;
    padding: 8px 12px 8px 15px;
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.5;
}
.ggt-correct-answer-label {
    font-weight: bold;
    color: #17a2b8;
    margin-right: 8px;
}
.ggt-correct-answer-text {
    display: inline;
    line-height: 1.4;
    font-weight: 500;
    color: #0056b3;
}


/* --- Main Buttons Area (Placeholder / Hidden) --- */
.ggt-main-buttons {
    display: none; /* Hide as we use individual buttons */
}

/* Screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}


/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .ggt-transformation-exercise-container {
        padding: 15px;
    }
    .ggt-transformation-exercise-container .ggt-exercise-title {
        font-size: 1.5em;
    }
    .ggt-transformation-exercise-container .ggt-exercise-instructions {
        font-size: 1em;
    }
    .ggt-question-container {
        padding: 10px;
    }
    .ggt-answer-input { /* Updated for input */
        font-size: 0.95em;
        padding: 6px 8px; /* Adjusted padding for mobile */
    }
}
