/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600&display=swap');

:root {
    --bg-light: #f5f5f7;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --border-color: #d2d2d7;
    --success: #34c759;
    --danger: #ff3b30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Prompt", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
}

h1, h2, h3, h4 {
    letter-spacing: -0.015em;
    font-weight: 600;
}

/* Apple-style Cards */
.glass-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 980px; /* Apple pill shape */
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
}

.btn-secondary {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.1);
}

/* Custom Footer */
.custom-footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.custom-footer span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Alerts / Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
}
.alert.error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
    display: block;
}
.alert.success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
    display: block;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.score-card {
    background: #fbfbfd;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.score-card .title { font-size: 1.1rem; font-weight: 500; }
.score-card .points { font-size: 1.25rem; color: var(--accent-blue); font-weight: 600;}

/* Exam Interface */
#timer-container {
    position: sticky;
    top: 1rem;
    z-index: 100;
    text-align: center;
    margin-bottom: 3rem;
}
.timer-box {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.timer-box.warning {
    color: var(--danger);
    border-color: var(--danger);
}

.question-card {
    margin-bottom: 2rem;
}
.question-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}
.options-list {
    list-style: none;
}
.option-item {
    margin-bottom: 1rem;
}
.option-label {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #fbfbfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.option-label:hover {
    background: #f0f0f2;
}
.option-input {
    margin-right: 1rem;
    transform: scale(1.3);
}
.option-input:checked + .option-text {
    color: var(--accent-blue);
    font-weight: 500;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
th {
    font-weight: 600;
    color: var(--text-secondary);
}
