:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary-color: #007bff; /* Allen Blue-ish */
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --nav-bg: #181818;
    --accent-green: #28a745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px; /* Mobile width cap */
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Header */
.app-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.batch-badge {
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.header-icons i {
    font-size: 1.2rem;
    margin-left: 15px;
    color: #fff;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px; /* Space for bottom nav */
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: var(--text-muted);
    font-size: 1.1rem;
    border: 1px dashed #333;
    border-radius: 10px;
}

/* Test Section Styles */
.test-header h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.score-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.total-score {
    text-align: center;
    margin-bottom: 20px;
}

.total-score h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.big-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.total-max {
    font-size: 1rem;
    color: var(--text-muted);
}

.subject-scores {
    border-top: 1px solid #333;
    padding-top: 15px;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.sub-name {
    color: #ddd;
}

.sub-score {
    font-weight: 600;
}

.rank-cards {
    display: flex;
    gap: 15px;
}

.rank-card {
    flex: 1;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.rank-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.rank-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.rank-total {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #222;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 5px;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item.active {
    color: var(--primary-color);
}
