:root {
    --primary: #2563eb; /* Royal Blue */
    --primary-hover: #1d4ed8;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --danger: #ef4444;
    --success: #10b981;
    --radius: 0.5rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0; padding: 0;
    line-height: 1.5;
}

/* Layout Utilities */
.container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.card { background: var(--bg-card); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.flex { display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; gap: 1rem; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3 { margin-top: 0; color: #111827; }
p { color: var(--text-muted); }

/* Components */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem;
    background-color: var(--primary); color: white;
    border: none; border-radius: var(--radius);
    text-decoration: none; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background-color: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); }
.btn-danger { background-color: var(--danger); }
.btn-success { background-color: var(--success); }

input, textarea, select {
    width: 100%; padding: 0.75rem; margin-top: 0.5rem; margin-bottom: 1rem;
    border: 1px solid #d1d5db; border-radius: var(--radius);
    box-sizing: border-box; font-size: 1rem;
}

/* Quiz Specific */
.timer-box { 
    position: sticky; top: 0; background: #fff; z-index: 10;
    padding: 10px; border-bottom: 2px solid var(--danger);
    color: var(--danger); font-weight: bold; text-align: center;
    box-shadow: var(--shadow);
}
.option-card {
    display: block; padding: 15px; border: 1px solid #e5e7eb;
    border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
}
.option-card:hover { background-color: #eff6ff; border-color: var(--primary); }
input[type="radio"] { width: auto; margin-right: 10px; }

body { font-family: 'Segoe UI', sans-serif; background: #f3f4f6; color: #1f2937; margin: 0; padding: 20px; }
.container { max-width: 800px; margin: 0 auto; }
.card { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 1.5rem; }
.btn { display: inline-block; padding: 10px 20px; background: #2563eb; color: white; text-decoration: none; border-radius: 5px; border: none; cursor: pointer; font-size: 14px; }
.btn-outline { background: transparent; border: 1px solid #6b7280; color: #6b7280; }
.btn-danger { background: #dc2626; }
.btn-success { background: #16a34a; }
.flex { display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
input, textarea { width: 100%; padding: 10px; margin: 5px 0 15px; border: 1px solid #d1d5db; border-radius: 5px; box-sizing: border-box; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }