/* assets/space-view.css */

/* ===============================
   ROOT / LAYOUT
================================= */
.spv-shell{
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #eef5ff; /* isto “platno” kao planner */
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* ===============================
   TOP BAR
================================= */
.spv-top{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:#ffffff;
  border-bottom:1px solid rgba(17,24,39,0.10);
  box-shadow: 0 2px 6px rgba(17,24,39,0.04);
}

.spv-head{
  flex:1;
  min-width:0;
}

.spv-title{
  font-weight:800;
  font-size:14px;
  color:#111827;
  line-height:1.15;
}

.spv-sub{
  font-size:12px;
  color:#475569;
  margin-top:3px;
  line-height:1.25;

  /* mobilno: uvek prelom, nikad sečenje */
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* ===============================
   TOOLS / BUTTONS
================================= */
.spv-tools{
  display:flex;
  gap:8px;
  flex: 0 0 auto;
}

.spv-btn{
  border:1px solid rgba(17,24,39,0.14);
  background: linear-gradient(180deg, #ffffff, #f3f6ff);
  border-radius:10px;
  padding:7px 12px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  color:#111827;
  box-shadow: 0 1px 2px rgba(17,24,39,0.05);
}

.spv-btn:active{
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* ===============================
   CANVAS WRAP
================================= */
.spv-wrap{
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.65), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.55), transparent 45%),
    #eaf3ff; /* identično planner pozadini */
}

/* ===============================
   CANVAS
================================= */
#spv-canvas{
  width: 100%;
  height: 100%;
  display:block;

  /* ključ: JS kontroliše pinch / pan */
  touch-action: none;
}

/* ===============================
   RESPONSIVE TWEAKS
================================= */
@media (max-width: 420px){
  .spv-top{
    padding:8px 10px;
    gap:10px;
  }

  .spv-title{
    font-size:13px;
  }

  .spv-sub{
    font-size:11.5px;
  }

  .spv-btn{
    padding:6px 10px;
    font-size:12px;
  }
}
