body {
  margin: 0;
  background: #0f172a;
  color: white;
  font-family: Arial, sans-serif;
}

.arTopBar {
  padding: 18px 25px;
  background: #020617;
  border-bottom: 2px solid #0ea5e9;
}

.arTopBar h2 {
  margin: 0 0 6px 0;
  color: #38bdf8;
}

.arTopBar p {
  margin: 0;
  color: #cbd5e1;
}

#sceneContainer {
  width: 100%;
  height: calc(100vh - 92px);
}
.sceneLabel {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(14, 165, 233, 0.92);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: bold;
  pointer-events: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}
#editorPanel {
  position: fixed;
  top: 110px;
  right: 20px;
  width: 260px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #38bdf8;
  border-radius: 14px;
  padding: 18px;
  color: white;
  z-index: 999;
}

#editorPanel h3 {
  margin-top: 0;
  color: #38bdf8;
}

#editorPanel button,
#editorPanel input {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
}

#editorPanel button {
  background: #0284c7;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#editorPanel select {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
}
#editorPanel {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

#modelLibrary {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.65);
}

.modelCategory {
  margin-bottom: 8px;
}

.modelCategoryHeader {
  width: 100%;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: bold;
}

.modelList {
  display: none;
  padding: 6px 0 6px 10px;
}

.modelList.open {
  display: block;
}

.modelItem {
  width: 100%;
  background: #0f172a;
  color: white;
  border: 1px solid #334155;
  padding: 8px;
  margin: 4px 0;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

.modelItem:hover {
  background: #0284c7;
}

#modelSearch {
  width: 100%;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #334155;
}
/* ===============================
   LISTY: teksty / assety / quiz
================================ */

.dataList{
    background:#f8fafc;
    border:1px solid #dbeafe;
    color:#111827;
}

.dataList h5{
    color:#1e40af;
    font-weight:700;
}

.dataItem{
    background:#ffffff;
    border:1px solid #cbd5e1;
    color:#111827;
    border-radius:10px;
    padding:10px;
    margin-bottom:10px;
}

.dataItem strong{
    display:block;
    color:#111827;
    font-weight:700;
    margin-bottom:6px;
}

.dataItem div{
    color:#111827;
    line-height:1.5;
}

.dataItem span{
    color:#111827;
}

.dataItem p{
    color:#111827;
    margin:4px 0;
}

.dataActions{
    margin-top:10px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.dataActions button{
    color:#ffffff;
    font-weight:600;
}

.dataActions button.edit{
    background:#059669;
}

.dataActions button.delete{
    background:#dc2626;
}

.dataActions button:hover{
    opacity:.9;
}
/* ===============================
   UKŁAD PANELI PRAWYCH
================================ */

#editorPanel {
  position: fixed;
  top: 110px;
  right: 20px;
  width: 600px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #38bdf8;
  border-radius: 14px;
  padding: 18px;
  color: white;
  z-index: 999;
  box-sizing: border-box;
}

#trainerRightPanel {
  position: fixed;
  top: 110px;
  right: 650px;
  width: 330px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #0ea5a3;
  border-radius: 14px;
  padding: 16px;
  color: #0f172a;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

#trainerRightPanel h3,
#trainerRightPanel h4 {
  color: #0f172a;
}

#trainerRightPanel label {
  color: #334155;
  font-weight: 700;
  font-size: 12px;
}

#trainerRightPanel input,
#trainerRightPanel select {
  width: 100%;
  margin: 6px 0 10px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  color: #0f172a;
  background: #ffffff;
}

#trainerRightPanel button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #0ea5a3;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.assignmentItem {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: #0f172a;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}