/* ==================== GLOBAL STYLES ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body, html {
    height: 100%;
    background-color: #f4f7f6;
    color: #2c3e50; 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY HIERARCHY ==================== */
h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.label, .sidebar-top h3 {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #95a5a6;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

/* ==================== LAYOUT & SIDEBAR ==================== */
.welcome-layout {
    display: flex;
    flex-direction: row; 
    width: 100%;
    height: 100vh;
}

.welcome-main {
    flex: 1; 
    position: relative; 
    background: white;
    height: 100vh;
    overflow-y: auto;
}

.welcome-sidebar {
    width: 25%;
    min-width: 280px;
    background-color: #2c3e50;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 6px solid #1abc9c; 
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); 
    z-index: 10;
}

.screen {
    display: none !important; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px; 
    z-index: 1;
    flex-direction: column;
    align-items: center;     
    text-align: center;
}

/* ==================== ASSESSMENT TEXT ==================== */
#scenario-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: #95a5a6; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

#question-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50; 
    margin: 25px auto;
}

/* ==================== CLEAN BUTTON SYSTEM ==================== */
.selection-buttons {
    display: flex;
    flex-direction: column; /* Restored to clean vertical list */
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.btn, .version-btn, .start-btn, .option-btn {
    width: 100%;
    max-width: 400px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #16a085;
    transform: translateY(-2px);
}

#pass-btn {
    margin-top: 20px;
    background-color: #7f8c8d;
    padding: 10px 30px;
    font-size: 0.9rem;
}

/* Sidebar Links */
.sidebar-top nav a {
    display: block; 
    color: #ecf0f1;
    text-decoration: none;
    margin-bottom: 8px; 
    padding: 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03); 
}

/* ==================== LOGO SYSTEM ==================== */
/* Applied to Welcome and Report screens only */
.main-logo {
    max-width: 250px !important;
    height: auto;
    margin-bottom: 30px;
}

.sidebar-logo img {
    max-width: 125px !important;
    height: auto;
    margin-bottom: 20px;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ==================== GRAMMAR LAYOUT (NO SIDEBAR) ==================== */
.grammar-main-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f7f6;
    position: relative;
}

/* Ensures the grammar screens have enough breathing room */
.grammar-main-content .screen {
    max-width: 850px;
    position: relative; /* Overriding absolute for better flow in this view */
    top: auto;
    left: auto;
    transform: none;
    padding: 40px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-wide {
    grid-column: 1 / -1;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1abc9c;
    margin-top: 10px;
}