/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    color: #333;
}

header {
    background-color: #004A99; /* SGT Red */
    color: white;
    padding: 20px;
    text-align: center;
}


main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.hidden {
    display: none !important;
}

/* Login Card */
.login-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Fixes padding issues */
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

button:hover {
    background-color: #218838;
}

.error-msg {
    color: red;
    margin-top: 10px;
}

/* Feedback Screen */
#user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#logout-btn {
    width: auto;
    background-color: #dc3545;
    padding: 5px 15px;
    font-size: 14px;
}

/* Teacher Card */
.teacher-card {
    background: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.teacher-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.subject {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.question {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 12 Question Options Styling */
.rating-group {
    display: flex;
    flex-direction: column; /* Stack options vertically */
    gap: 8px;
}

.rating-group label {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #eee;
    cursor: pointer;
    font-weight: normal;
}

.rating-group label:hover {
    background-color: #e2e6ea;
}

.rating-group input[type="radio"] {
    margin-right: 10px;
}

textarea {
    width: 100%;
    height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 0 0;
    margin-top: 50px;
    font-size: 14px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px 30px 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-col h3 {
    color: #f1c40f;
    margin-bottom: 15px;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-bottom {
    background-color: #1a252f;
    text-align: center;
    padding: 15px;
    border-top: 1px solid #34495e;
}
/* --- VERSION 2.0 UPGRADES --- */

/* 1. Sticky Progress Bar */
#global-progress-container {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border-radius: 8px; /* Restores the rounded corners */
}

#global-progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

#global-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #27ae60; /* Green */
    transition: width 0.4s ease;
}

#progress-text {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
    color: #666;
    font-weight: bold;
}

/* 2. Accordion Card Styling */
.teacher-card {
    transition: all 0.3s ease;
    padding: 0; /* Remove default padding for accordion look */
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.card-header:hover {
    background-color: #e9ecef;
}

.card-body {
    padding: 20px;
    background: #fff;
}

/* This class hides the questions */
.card-body.hidden {
    display: none;
}

/* 3. Status & Completion */
.status-icon {
    font-size: 1.2em;
    color: #ccc;
}

.teacher-card.done {
    border: 2px solid #27ae60; /* Green border */
}

.teacher-card.done .card-header {
    background-color: #e8f5e9; /* Light green header */
}
/* --- User Profile Section Redesign --- */

#user-info {
    display: flex;
    justify-content: space-between; /* Pushes Name to left, Button to right */
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 12px; /* Softer corners */
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Subtle shadow for depth */
    border-left: 5px solid #004A99; /* SGT Red accent bar on the left */
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between avatar and text */
}

.user-avatar {
    background-color: #f0f2f5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 1px solid #e1e4e8;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.welcome-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

#user-name {
    margin: 2px 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.id-badge {
    display: inline-block;
    background-color: #e3f2fd; /* Light Blue background */
    color: #1565c0; /* Dark Blue text */
    padding: 4px 10px;
    border-radius: 20px; /* Pill shape */
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start; /* Prevents badge from stretching */
}

/* Logout Button Styling */
#logout-btn {
    width: auto; /* Let it shrink to fit text */
    background-color: white;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}



/* =========================================
   NEW STEPPER & MATRIX STYLES (Add to bottom)
   ========================================= */

#stepper-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
}

.step-header {
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.step-header h3 {
    margin: 0;
    color: #004A99;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Matrix Table Setup */
.matrix-table-container {
    overflow-x: auto; /* Important for mobile screens! */
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces scrolling on very tiny phones */
}

.matrix-table th {
    background-color: #f8f9fa;
    color: #495057;
    padding: 15px 10px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
}

.matrix-table th:first-child {
    text-align: left;
    width: 35%;
}

.matrix-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.teacher-info-cell strong {
    color: #2c3e50;
    font-size: 1rem;
}

.teacher-info-cell small {
    color: #6c757d;
}

.radio-cell {
    text-align: center;
}

.radio-cell input[type="radio"] {
    transform: scale(1.3);
    cursor: pointer;
}

/* Step 13: Comments */
.comments-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.comment-box label {
    display: block;
    margin-bottom: 10px;
    color: #004A99;
}

.comment-box textarea {
    width: 100%;
    height: 60px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

/* Navigation Buttons */
#stepper-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.nav-btn {
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
}

.secondary-btn:disabled {
    background-color: #ced4da;
    cursor: not-allowed;
}

.primary-btn {
    background-color: #004A99;
    color: white;
}

.primary-btn:hover { background-color: #003673; }

.submit-btn {
    background-color: #28a745;
    color: white;
}

.submit-btn:hover { background-color: #218838; }
.password-hint {
    display: block;
    margin: 4px 0 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}