/* VCA wiki: zelfde kleurschema en knoppen als Planning Wijbenga */

/* --- Navbar: planning-header stijl (gradient #667eea → #764ba2) --- */
.vca-wiki-navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.vca-wiki-navbar .navbar-brand,
.vca-wiki-navbar .nav-link {
  color: white !important;
}

.vca-wiki-navbar .nav-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Knoppen in navbar: planning-stijl (lichte witte overlay) */
.vca-wiki-navbar .vca-wiki-btn,
.vca-wiki-navbar .btn.vca-wiki-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  padding: 4px 12px;
  font-size: 0.9rem;
}

.vca-wiki-navbar .vca-wiki-btn:hover,
.vca-wiki-navbar .btn.vca-wiki-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.vca-wiki-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.vca-wiki-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Body en main: planning-achtergrond */
body {
  background-color: #f5f6fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.vca-main .container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* Wiki content knoppen: planning accent (#667eea → #764ba2) */
.vca-main .btn-primary,
.vca-main a.btn-primary,
.vca-main .btn-info,
.vca-main a.btn-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
}

.vca-main .btn-primary:hover,
.vca-main .btn-info:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
  color: white !important;
}

/* --- Sidebar: hoofdstukken menu (accent #667eea) --- */

.vca-layout {
  display: flex;
  margin-top: 56px;
  min-height: calc(100vh - 56px);
}

.vca-sidebar {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  padding: 1rem 0;
  overflow-y: auto;
}

.vca-main {
  flex: 1;
  min-width: 0;
}

.vca-sidebar-nav {
  padding: 0 0.5rem;
}

.vca-hoofdstukken-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vca-hoofdstuk {
  margin-bottom: 0.25rem;
}

.vca-hoofdstuk-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.25rem;
}

.vca-toggle,
.vca-toggle-placeholder {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #495057;
}

.vca-toggle:hover {
  background: #e9ecef;
  color: #212529;
}

.vca-toggle-placeholder {
  cursor: default;
  visibility: hidden;
}

.vca-toggle-icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.vca-hoofdstuk[data-expanded="true"] .vca-toggle-icon {
  transform: rotate(-90deg);
}

.vca-hoofdstuk-link {
  flex: 1;
  padding: 0.35rem 0.5rem;
  color: #212529;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}

.vca-hoofdstuk-link:hover {
  background: #e9ecef;
  color: #667eea;
}

.vca-hoofdstuk-link.active {
  background: #e7f1ff;
  color: #667eea;
}

.vca-sub-hoofdstukken {
  list-style: none;
  margin: 0.25rem 0 0.5rem 0;
  padding-left: 1.75rem;
  border-left: 1px solid #dee2e6;
  margin-left: 0.875rem;
}

.vca-sub-hoofdstukken[hidden] {
  display: none;
}

.vca-sub-hoofdstukken li {
  margin-bottom: 0.2rem;
}

.vca-sub-link {
  display: block;
  padding: 0.25rem 0.5rem;
  color: #495057;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
}

.vca-sub-link:hover {
  background: #e9ecef;
  color: #667eea;
}

.vca-sub-link.active {
  background: #e7f1ff;
  color: #667eea;
  font-weight: 500;
}

.vca-sub-sub {
  list-style: none;
  margin: 0.1rem 0 0.2rem 0;
  padding-left: 1rem;
}

.vca-sub-sub li {
  margin-bottom: 0.1rem;
}

.vca-sub-sub .vca-sub-link {
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .vca-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }

  .vca-layout {
    flex-direction: column;
  }
}
