:root {
  --dark-bg: #ffffff;
  --dark-card: #ffffff;
  --gold-start: #f4c542;
  --gold-end: #d4a017;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-subtle: rgba(244, 197, 66, 0.3);
  --shadow-gold: rgba(244, 197, 66, 0.2);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

#mouse-glow {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 197, 66, 0.4) 0%, rgba(212, 160, 23, 0.25) 30%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

header {
  text-align: center;
  padding: 3rem 0;
  position: relative;
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px var(--shadow-gold));
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--dark-card);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.card.locked:hover {
  transform: none;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.module-status {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.status-unlocked {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: #000;
}

.status-locked {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.module-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: #000;
  box-shadow: 0 4px 15px var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-start);
  border: 2px solid var(--gold-start);
}

.btn-secondary:hover {
  background: rgba(244, 197, 66, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.input-group textarea {
  min-height: 120px;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--gold-start);
  box-shadow: 0 0 20px rgba(244, 197, 66, 0.2);
}

.question-block {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--gold-start);
}

.question-number {
  color: var(--gold-start);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.question-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.result-item {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.result-item.pass {
  border-left-color: #4ade80;
}

.result-item.fail {
  border-left-color: #f87171;
}

.score-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  margin-left: 0.5rem;
}

.score-pass {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.score-fail {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.summary-box {
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.1), rgba(212, 160, 23, 0.1));
  border: 2px solid var(--gold-start);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.summary-score {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-message {
  font-size: 1.3rem;
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th {
  background: rgba(244, 197, 66, 0.1);
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-subtle);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.error-message {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid #f87171;
  border-radius: 8px;
  padding: 1rem;
  color: #f87171;
  margin-bottom: 1rem;
}

.success-message {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid #4ade80;
  border-radius: 8px;
  padding: 1rem;
  color: #4ade80;
  margin-bottom: 1rem;
}

.result-item {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.result-item.pass {
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.02);
}

.result-item.fail {
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.02);
}

.score-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.score-pass {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.score-fail {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .module-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .module-status {
    margin-top: 0.5rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
