/* Inherit variables from style.css */

/* Main Layout */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
    animation: fadeIn 0.5s ease-out;
}

/* Panel Containers */
.back-container1, .back-container2 {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.back-container1 {
    flex: 2; /* Main form takes more space */
}

.back-container2 {
    flex: 1; /* Sidebar */
    min-width: 320px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Headings */
h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

h2:first-child {
    margin-top: 0;
}

/* Form Sections */
.form-section {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Inputs & Textareas */
.score-input, 
.input-field,
.select-field,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 1rem;
    resize: vertical; /* Allow vertical resize only */
}

textarea {
    min-height: 80px;
}

.score-input {
    width: 100px; /* Small width for score */
}

.score-input:focus, 
.input-field:focus,
.select-field:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Checkbox/Radio Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

input[type="radio"], input[type="checkbox"] {
    accent-color: var(--primary-green);
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* Date Display */
.date-display {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.date-display b {
    color: var(--text-dark);
}

/* Download Button */
.btn-download {
    width: 100%;
    background: linear-gradient(135deg, var(--highlight-orange), var(--hover-orange));
    color: white;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 102, 0, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .flex-container {
        flex-direction: column;
    }

    .back-container1, .back-container2 {
        width: 100%;
        min-width: 0;
    }

    .back-container2 {
        position: static;
        order: -1; /* Show student data first on mobile? Or verify user pref. */
    }
    
    /* Ensure order makes sense: Form first usually, but date/student info at top is nice.
       Let's keep default HTML order which puts form first. 
       If we want student data on top, we can use order: -1. 
       Let's stick to HTML order for now as it flows logically: Input academic info -> Download.
       Actually, `back-container1` is the form, `back-container2` acts as a side panel.
       On mobile, usually side panels go to bottom.
    */
}
