/* Global Styles */
:root {
    --primary: #4F46E5;
    --primary-hover: #4338ca;
    --secondary: #10B981;
    --secondary-hover: #059669;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #9CA3AF;
    --danger: #EF4444;
    --bg: #F3F4F6;
    --text: #374151;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    /* Prevent text selection/copying */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Landing Page */
.landing-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
}

.landing-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    color: var(--text);
}

.landing-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.landing-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.btn-secondary { background-color: var(--secondary); }
.btn-secondary:hover { background-color: var(--secondary-hover); }

.btn-danger { background-color: var(--danger); }
.btn-danger:hover { background-color: #DC2626; }

.btn-small { padding: 0.4rem 0.8rem; font-size: 0.875rem; }

/* Admin Layout */
.admin-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card h2 { margin-bottom: 1rem; font-size: 1.25rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 1rem;
}
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

.hidden { display: none !important; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}
th { font-weight: 600; color: var(--dark); }

/* Student Player */
.student-body { background-color: #000; color: white; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.player-header { padding: 1rem 2rem; background: rgba(0,0,0,0.8); display: flex; justify-content: space-between; align-items: center; }
.player-container { flex: 1; display: flex; justify-content: center; align-items: center; padding: 2rem; position: relative; }

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

video { width: 100%; display: block; }

/* Question Modal Overlay */
.player-custom-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    max-width: 150px;
    max-height: 80px;
    z-index: 40;
    pointer-events: none;
    opacity: 0.8;
}

.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: white;
    color: var(--text);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
}

.modal-content h3 { margin-bottom: 1.5rem; font-size: 1.5rem; color: var(--dark); }

.options-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.option-btn {
    text-align: left;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.option-btn:hover { border-color: var(--primary); background: #EEF2FF; }
.option-btn.selected { border-color: var(--primary); background: #EEF2FF; font-weight: bold; }
.option-btn.correct { border-color: var(--secondary); background: #ECFDF5; }
.option-btn.wrong { border-color: var(--danger); background: #FEF2F2; }

.feedback-msg {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}
.feedback-msg.success { background: #D1FAE5; color: #065F46; }
.feedback-msg.error { background: #FEE2E2; color: #991B1B; }
