@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root { --primary-text: #2c3e50; --secondary-text: #7f8c8d; --border-color: #dfe4ea; --background-color: #f8f9fa; --accent-blue: #007bff; --accent-red: #dc3545; --accent-green: #28a745; --loader-red: #e74c3c; --loader-yellow: #f1c40f; --loader-blue: #3498db; --loader-green: #2ecc71; --font-family: 'Inter', sans-serif; --shadow: 0 4px 20px rgba(0, 0, 0, 0.07); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); background-color: var(--background-color); color: var(--primary-text); line-height: 1.6; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 1rem; }
.form-wrapper { width: 100%; max-width: 600px; background: #ffffff; border-radius: 12px; box-shadow: var(--shadow); padding: 2.5rem; text-align: center; }
.logo { width: 70px; margin-bottom: 1rem; }
.form-wrapper h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.form-wrapper p { color: var(--secondary-text); font-size: 1.1rem; margin-bottom: 1.5rem; }
.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.input-group input, .input-group textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; }
.btn-submit { padding: 0.8rem 1.8rem; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; background-color: var(--accent-blue); color: white; position: relative; min-width: 120px; transition: all 0.3s; }
.btn-submit:hover { background-color: #0056b3; }
.loader { display: none; } .btn-submit.loading .loader { display: block; } .btn-submit.loading .btn-text { visibility: hidden; }
.error-message { color: var(--accent-red); height: 1.2rem; }
.instructions-wrapper { text-align: left; } .instructions-content h3 { margin-top: 1.5rem; } .instructions-content ul { padding-left: 20px; } .permissions-check { text-align: center; margin-top: 2rem; }
.subtle-text { font-size: 0.9rem; color: #aaa; }
.proctor-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 62, 80, 0.9); color: white; display: flex; align-items: center; justify-content: center; z-index: 1000; text-align: center; }
.proctor-message { max-width: 400px; }
.assessment-container { width: 100%; height: 100%; background: var(--background-color); display: flex; flex-direction: column; }
.assessment-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); flex-shrink: 0; }
.timer { font-size: 1.2rem; font-weight: 600; color: var(--accent-red); }
.assessment-main { display: grid; grid-template-columns: 3fr 1fr; gap: 1.5rem; padding: 1.5rem; flex-grow: 1; overflow: auto; }
.question-panel, .status-panel { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.options label { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 5px; cursor: pointer; transition: all 0.2s; }
.options label:hover { background: #f8f9fa; border-color: var(--accent-blue); }
.options input[type="radio"] { accent-color: var(--accent-blue); width: 18px; height: 18px; }
.navigation-controls { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.btn-primary, .btn-secondary, .btn-danger { padding: 0.6rem 1.2rem; border: none; border-radius: 5px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.applicant-info { text-align: center; border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 1rem; }
.applicant-info img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.question-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 0.5rem; }
.grid-item { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 5px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.grid-item.answered { background: var(--accent-green); color: white; }
.grid-item.not-answered { background: #ecf0f1; }
.grid-item.marked { background: #f1c40f; color: white; }
.grid-item.current { border: 2px solid var(--accent-blue); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; margin-top: 1rem; border-top: 1px solid #eee; padding-top: 1rem; }
.legend-box { width: 15px; height: 15px; border-radius: 3px; } .current-legend { border: 1px solid #999; }
.floating-camera { position: fixed; bottom: 20px; left: 20px; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 4px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 1001; transition: all 0.3s; }
.floating-camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.desktop-only-warning { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; background: #f8f9fa; }
.star-rating { display: flex; justify-content: center; font-size: 2rem; color: #bdc3c7; cursor: pointer; }
.star-rating .fa-solid { color: #f1c40f; }
@media (max-width: 1024px) { .assessment-container, .floating-camera { display: none !important; } .desktop-only-warning { display: flex; align-items: center; justify-content: center; } }