:root {
  --primary: #2c5f2d;
  --primary-dark: #1e4620;
  --primary-light: #97c05c;
  --accent: #f7941d;
  --accent-hover: #e58410;
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --error: #c53030;
  --success: #38a169;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Crimson Pro', 'Georgia', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

/* Navigation */
nav {
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-brand:hover {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.narrow-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}


a.card {
  text-decoration: none;
  color: inherit;
} 


.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-static {
  text-align: left;
}

.card-static:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.5rem;
  margin: 0;
}

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

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

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--surface);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

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

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

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

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  background: #9b2c2c;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

button.btn {
  display: inline-block;

  /* re-apply btn base styles */
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: normal;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--primary);
  color: white;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

tbody tr:hover {
  background: var(--bg);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem;
}

.login-box {
  background: var(--surface);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Question Display */
.question-container {
  margin-bottom: 2rem;
}

.question-instruction {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

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

.image-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.option-card:hover {
  border-color: var(--primary);
  background: var(--bg);
  transform: translateX(4px);
}

.option-card input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.option-card label {
  cursor: pointer;
  margin: 0;
  flex: 1;
  font-size: 1.1rem;
}

/* Messages */
.message {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.message-success {
  background: #f0fff4;
  border-color: var(--success);
  color: #22543d;
}

.message-error {
  background: #fff5f5;
  border-color: var(--error);
  color: #742a2a;
}

.message-info {
  background: #ebf8ff;
  border-color: #3182ce;
  color: #2c5282;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .container,
  .narrow-container {
    padding: 2rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=DM+Serif+Display:ital@0;1&display=swap');
