/* =========================================
   IPBOX.CSS
   - Zelfde zijmenu systeem als je werkende scherm:
     .sidebar + .sidebar.open + .overlay + .menu-button
   - Rechter sidebar is #priceSidebar (uniek, geen conflict)
   ========================================= */

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #E0E0E0;
}

body.ipbox-page {
  background-image: url('assets/achtergrond_blank.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; }

/* -------- LAYOUT -------- */
#interface {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 70px 16px 40px 16px;
  z-index: 1;
}

#maincontent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

/* -------- LOGO / FOOTER -------- */
.floating-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 200px;
  height: auto;
  z-index: 1000;
  opacity: 0.6;
}

#footer {
  position: fixed;
  top: 20px;
  right: 250px;
  font-size: 0.9em;
  color: #E0E0E0;
  padding: 5px 10px;
  background: #1E1E2F;
  border-radius: 6px;
  z-index: 1050;
}

/* -------- ACTIEKNOPPEN -------- */
#actiekoppen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  padding: 10px;
  z-index: 1001;
}
#actiekoppen button {
  padding: 10px 14px;
  background-color: #4FD1C5;
  color: #1E1E2F;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* =========================================
   ZIJMENU (zelfde als je werkende scherm)
   ========================================= */

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 265px;
  background: rgba(22, 28, 36, 0.97);
  color: #ecf3fa;
  box-shadow: 8px 0 32px rgba(10, 10, 20, 0.33);
  backdrop-filter: blur(10px) saturate(140%);
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  padding: 28px 18px 28px 28px;
  padding-top: 92px;
  transition: transform 0.32s cubic-bezier(.68, -0.55, .27, 1.55), box-shadow 0.28s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-110%);
}

.sidebar.open {
  transform: translateX(0);
  box-shadow: 8px 0 32px rgba(40, 50, 72, 0.24);
}

.sidebar nav { width: 100%; }

.sidebar-section {
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 12px 0 4px 0;
  display: flex;
  align-items: center;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.13);
}

.sidebar-section ul {
  list-style: none;
  padding-left: 10px;
  margin: 0 0 0 2px;
}

.sidebar-section ul li { margin: 9px 0; }

.sidebar-section ul li a {
  display: block;
  padding: 9px 14px 9px 14px;
  border-radius: 9px;
  color: #c8d8ef;
  font-size: 16.2px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.17s, color 0.18s;
  position: relative;
}

.sidebar-section ul li a:hover,
.sidebar-section ul li a.active {
  background: linear-gradient(90deg, #223046 0%, #396fae 100%);
  color: #fff;
}

@media (max-width: 900px) {
  .sidebar {
    width: 84vw;
    max-width: 340px;
    padding-top: 68px;
    border-radius: 0 22px 22px 0;
  }
}

/* Hamburger */
.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #4FD1C5;
  z-index: 1001;
  outline: none;
  box-shadow: none;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}
.overlay.show { display: block; }

/* =========================================
   RECHTER PRIJS SIDEBAR (unieke id)
   ========================================= */
#priceSidebar {
  flex: 0 0 350px;
  width: 350px;
  min-width: 250px;
  max-width: 400px;
  padding: 20px;
  color: #E0E0E0;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  margin-top: 0;
}

#priceSidebar ul { list-style: none; padding: 0; margin: 0; }
#priceSidebar li { margin-bottom: 8px; }

#priceSidebar label { color: #fff; font-size: 1em; }

#priceSidebar input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  color: #E0E0E0;
  outline: none;
}

#priceSidebar button {
  padding: 10px;
  background-color: #4FD1C5;
  color: #1E1E2F;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 2px 0;
}

.ipbox-pricebox {
  margin-top: 8px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  color: #E0E0E0;
}
#priceTotal { font-weight: 800; }
.ipbox-pricebox button { width: 100%; display: block; margin-top: 8px; }

/* -------- HEADER -------- */
.ipbox-header {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  padding: 14px;
  margin-bottom: 10px;
}

.ipbox-title {
  margin: 0 0 6px 0;
  color: #fff;
  font-size: 32px;
}

.ipbox-subtitle { margin: 0; color: #E0E0E0; }

/* -------- STEPS -------- */
.ipbox-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px 0;
}

.ipbox-step {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  color: #E0E0E0;
  cursor: pointer;
  user-select: none;
}

.ipbox-step.active {
  background-color: #4FD1C5;
  color: #1E1E2F;
  border: none;
  font-weight: 700;
}

/* -------- PANELS -------- */
.ipbox-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  padding: 20px;
  margin-bottom: 12px;
}
.ipbox-panel.active { display: block; }

.ipbox-panel h2 { margin: 0 0 8px 0; color: #fff; }
.ipbox-hint { margin: 0 0 10px 0; color: #E0E0E0; }

.ipbox-inline-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 160, 160, 0.9);
  background: rgba(255, 120, 120, 0.12);
  color: #ffd0d0;
}

/* -------- CARDS -------- */
.ipbox-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.ipbox-card {
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  padding: 14px;
  color: #E0E0E0;
  height: 100%;
}

.ipbox-card h3 { margin: 0 0 6px 0; color: #fff; }
.ipbox-card p { margin: 0 0 10px 0; }
.ipbox-card ul { margin: 0; padding-left: 18px; }

.ipbox-card.selectable { cursor: pointer; }
.ipbox-card.selectable.selected { outline: 3px solid #007BFF; }

@media (max-width: 900px) {
  .ipbox-card-grid { grid-template-columns: 1fr; }
}

/* -------- MODULES -------- */
.ipbox-section-title { margin: 8px 0 6px 0; font-weight: 700; color: #fff; }

.ipbox-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.ipbox-module {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: rgba(255, 255, 255, 0.171);
  padding: 12px;
  cursor: pointer;
  user-select: none;
}

.ipbox-module.disabled { opacity: 0.55; cursor: not-allowed; }

.ipbox-module input { margin-top: 4px; transform: scale(1.15); }
.ipbox-module-title { font-weight: 700; color: #fff; }
.ipbox-module-desc { color: #E0E0E0; margin-top: 4px; }

/* -------- NAV BUTTONS -------- */
.ipbox-nav {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ipbox-btn {
  padding: 10px 14px;
  background-color: #4FD1C5;
  color: #1E1E2F;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.ipbox-btn.primary { background-color: #4FD1C5; color: #1E1E2F; }

/* -------- FREE TEXT -------- */
#vrijeTekstLabel {
  color: #E0E0E0;
  margin-top: 18px;
  margin-bottom: 4px;
  display: block;
}

#vrijeTekstIpbox {
  width: 100%;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.171);
  color: #E0E0E0;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  resize: vertical;
  margin-bottom: 24px;
  font-size: 1.2em;
}

/* -------- EXTRAS / TABS -------- */
.ipbox-extras-list { display: flex; flex-direction: column; gap: 10px; }

.ipbox-extras-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.ipbox-extras-row.disabled { opacity: 0.5; }

.ipbox-extras-left { flex: 1; min-width: 0; }
.ipbox-extras-name { font-weight: 700; }
.ipbox-extras-meta { opacity: 0.85; font-size: 0.9rem; margin-top: 2px; }

.ipbox-extras-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 160px;
}

.ipbox-qty-wrap{ display: flex; align-items: center; gap: 10px; }
.ipbox-qty-label{ font-size: 0.85rem; opacity: 0.9; }

.ipbox-qty{
  width: 90px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
  color: #fff;
  text-align: right;
}

.ipbox-tabs{ display:flex; gap:10px; margin: 10px 0 18px 0; }
.ipbox-tab{
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.ipbox-tab.active{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}
.ipbox-tabpanel{ display:none; }
.ipbox-tabpanel.active{ display:block; }

/* -------- RESPONSIVE -------- */
@media (max-width: 1100px) {
  #interface {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 70px 2vw 40px 2vw;
  }

  #maincontent { width: 100%; max-width: 100%; }

  #priceSidebar {
    border-left: none;
    border-top: 2px solid #ccc;
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  #footer {
    position: static;
    margin-top: 20px;
    right: auto;
    top: auto;
    background: #1E1E2F;
  }

  .floating-logo {
    position: static;
    width: 140px;
    margin: 12px auto;
    display: block;
  }
}

@media (max-width: 700px) {
  html, body, #maincontent, #priceSidebar, #vrijeTekstIpbox, #vrijeTekstLabel {
    width: 100vw !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #footer { font-size: 0.8em; }
  .floating-logo { width: 100px; }
}


.ipbox-card-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
