/* ============================= */
/* ROOT DESIGN SYSTEM - W3 SCHOOLS */
/* ============================= */

:root {

    --primary: #04AA6D;
    --primary-dark: #04855a;
    --primary-light: #d9eee1;

    --success: #04AA6D;
    --danger: #f44336;

    --bg-main: #f1f1f1;
    --bg-card: #ffffff;

    --text-main: #333333;
    --text-secondary: #666666;
    --text-label: #555555;

    --border: #dddddd;
    --border-dark: #cccccc;

    --shadow-soft: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.08);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;

}


/* ============================= */
/* GLOBAL RESET */
/* ============================= */

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

html, body {

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    background: var(--bg-main);
    color: var(--text-main);

    line-height: 1.5;
    min-height: 100vh;

}


/* ============================= */
/* LAYOUT */
/* ============================= */

.container {

    max-width: 900px;
    margin: 0 auto;
    padding: 20px;

}

.content {

    margin-top: 20px;

}


/* ============================= */
/* HEADER */
/* ============================= */

.header {

    background: var(--primary);
    color: white;

    padding: 20px;

    border-radius: var(--radius);

    font-size: 22px;
    font-weight: 600;

    text-align: center;

    box-shadow: var(--shadow-medium);

    margin-bottom: 24px;

    border-bottom: 3px solid var(--primary-dark);

}


/* ============================= */
/* CARD */
/* ============================= */

.card {

    background: var(--bg-card);

    padding: 24px;

    margin-bottom: 20px;

    border-radius: var(--radius);

    box-shadow: var(--shadow-soft);

    border: 1px solid var(--border);

}


/* ============================= */
/* STUDENT DETAILS LABELS */
/* ============================= */

.card:first-of-type label {

    display: block;

    font-size: 14px;
    font-weight: 600;

    color: var(--text-label);

    margin-bottom: 4px;

    text-transform: uppercase;
    letter-spacing: 0.3px;

}


/* ============================= */
/* INPUT FIELDS */
/* ============================= */

input[type="text"],
input[type="email"],
input[type="password"],
select {

    width: 100%;

    padding: 14px;

    border-radius: var(--radius-sm);

    border: 1px solid var(--border);

    background: white;

    font-size: 15px;

    margin-bottom: 20px;

    transition: all 0.15s ease;

    color: var(--text-main);

    border-left: 3px solid var(--border);

}

input:focus,
select:focus {

    outline: none;

    border-color: var(--primary);

    border-left-color: var(--primary);

    box-shadow: 0 0 0 2px var(--primary-light);

}


/* ============================= */
/* QUESTIONS */
/* ============================= */

.card b {

    display: block;

    font-size: 18px;

    font-weight: 600;

    margin-bottom: 16px;

    padding-bottom: 8px;

    border-bottom: 2px solid var(--primary-light);

}


/* OPTION ROWS */

.card:not(:first-of-type) > label {

    display: flex;
    align-items: center;

    width: 100%;

    padding: 16px 20px;

    margin-bottom: 12px;

    background: #f9f9f9;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    cursor: pointer;

    transition: all 0.15s ease;

    font-size: 16px;

    border-left: 4px solid transparent;

}

.card:not(:first-of-type) > label:hover {

    background: var(--primary-light);

    border-color: var(--primary);

    border-left-color: var(--primary);

    transform: translateX(4px);

}

.card:not(:first-of-type) > label input[type="radio"] {

    width: 20px;
    height: 20px;

    margin-right: 16px;

    accent-color: var(--primary);

}


/* Selected option */

.card:not(:first-of-type) > label:has(input[type="radio"]:checked) {

    background: var(--primary-light);

    border-color: var(--primary);

}


/* ============================= */
/* BUTTON */
/* ============================= */

button {

    width: 100%;

    padding: 16px;

    border: none;

    border-radius: var(--radius-sm);

    font-size: 18px;

    font-weight: 600;

    color: white;

    background: var(--primary);

    cursor: pointer;

    transition: all 0.2s ease;

}

button:hover {

    background: var(--primary-dark);

}


/* ============================= */
/* TABLE */
/* ============================= */

.table-container {

    overflow-x: auto;

    border-radius: var(--radius);

}

table {

    width: 100%;

    border-collapse: collapse;

    min-width: 900px;

}

th {

    background: #f5f5f5;

    padding: 16px;

    border-bottom: 2px solid var(--primary);

    text-align: left;

    font-size: 14px;

    white-space: nowrap;

}

td {

    padding: 14px 16px;

    border-bottom: 1px solid var(--border);

    color: var(--text-secondary);

    white-space: nowrap;

}

tr:hover td {

    background: #fafafa;

}


/* ============================= */
/* ADMIN FILTER */
/* ============================= */

#filterForm {

    display: flex;
    flex-direction: column;
    gap: 16px;

}

#filterForm button {

    width: auto;

    padding: 12px 24px;

}


/* ============================= */
/* RESULT PAGE */
/* ============================= */

div[style*="font-size:42px"] {

    font-size: 42px !important;

    color: var(--primary);

}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 600px) {

.container {

    padding: 12px;

}

.header {

    font-size: 18px;

}

.card {

    padding: 18px;

}

button {

    font-size: 16px;

}

}
