/* ===== aMAZe-LAPP – Strukturelles CSS ===== */
/* Farben kommen dynamisch via themes.R / generate_theme_css() */

body {
  font-family: "Segoe UI", Arial, sans-serif;
}

/* --- Task panels --- */
.task-panel {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.task-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: blur(2px);
  user-select: none;
}

.task-desc {
  margin-bottom: 16px;
}

/* --- Posts --- */
.post {
  padding: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 6px;
}

.reply {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 2px dashed #bbb;
  margin-top: 8px;
}

.reply-link {
  font-size: 0.9em;
  color: #666;
  text-decoration: none;
}

.reply-link:hover {
  opacity: 0.8;
}

/* --- Solutions --- */
.task-solution-wrap {
  color: #000;
  margin-top: 22px;
}

.task-solution-box {
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #dde7f5;
}

@media (max-width: 900px) {
  .task-solution-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .task-solution-box table {
    min-width: 700px;
  }
}

/* --- Inputs --- */
textarea, input[type="text"], input[type="password"] {
  background-color: #fff;
  border-radius: 6px;
}

/* --- Lesson intro --- */
.lesson-intro {
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  border-left-width: 4px;
  border-left-style: solid;
}

/* --- Navbar tweaks --- */
.navbar {
  border-radius: 0;
  margin-bottom: 0;
}

/* --- Admin dashboard --- */
.admin-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* --- Responsive: Login --- */
@media (max-width: 500px) {
  .login-box {
    padding: 24px 20px !important;
  }
}

/* --- Admin: Tooltip-Eingabefelder kompakt --- */
[id^="admin_dash-unlock_panel-tip_"] {
  font-size: 0.8em !important;
  height: 28px !important;
  padding: 2px 8px !important;
}
