/* Verberg specifieke secties in de modal */
.modal-prioriteit-scores {
  display: none !important;
}

/* Afbeeldingen blijven altijd zichtbaar */
.modal-images,
.modal-images-content {
  display: block !important;
}

/* Responsive layout voor experiment detail (afbeelding + hypothese/beschrijving/uitleg) */
.experiment-detail-layout {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

/* Afbeelding kolom: minimaal 30% van de breedte */
.experiment-image-column {
  min-width: 30%;
  flex: 0 0 30%;
  max-width: 50%;
}

/* Tekst kolom: neemt resterende ruimte */
.experiment-text-column {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .experiment-detail-layout {
    flex-direction: column;
  }
  
  .experiment-detail-layout > div {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: unset;
  color: #37352f;
  line-height: 1.5;
}

.container {
  max-width: unset;
  margin: 0;
  padding: 10px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background-color: #008080;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #e3e2e0;
  gap: 16px;
  flex-wrap: wrap;
}

.title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: column;
}

.controls-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.client-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
  padding: 12px 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #6f6e69;
  white-space: nowrap;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #e3e2e0;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: #2383e2;
  background: #f8f9ff;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #2383e2;
  color: white;
  border-color: #2383e2;
}

.filter-btn.all-clients {
  background: #f1f1ef;
  border-color: #d1d1cf;
  font-weight: 600;
}

.sync-btn {
  background: #2383e2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-btn:hover:not(:disabled) {
  background: #1a73d1;
  transform: translateY(-1px);
}

.sync-btn:disabled {
  background: #e3e2e0;
  color: #9b9a97;
  cursor: not-allowed;
  transform: none;
}

.view-toggle {
  display: flex;
  gap: 8px;
}

.view-btn {
  padding: 8px 16px;
  border: 1px solid #e3e2e0;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn.active {
  background: #2383e2;
  color: white;
  border-color: #2383e2;
}

.status-bar {
  background: #f1f1ef;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-success {
  background: #d3f8d3;
  color: #0f7b0f;
}

.status-error {
  background: #ffeaea;
  color: #d93025;
}

.status-loading {
  background: #e3f2fd;
  color: #1976d2;
}

/* Kanban Board Styles */
.kanban-board {
  display: none;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  min-height: 85vh;
  width: 100%;
}

.kanban-column {
  min-width: 280px;
  max-width: 320px;
  background-color: #edf3eb;
  border-radius: 8px;
  padding: 16px;
  flex-shrink: 0;
  height: fit-content;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.column-title {
  font-size: 14px;
  font-weight: 600;
  color: #6f6e69;
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  background: #e3e2e0;
  color: #6f6e69;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-idee {
  background: #d946ef;
}
.status-analyseren {
  background: #f59e0b;
}
.status-verliezer {
  background: #dc2626;
}
.status-winnaar {
  background: #16a34a;
}
.status-onderzoeken {
  background: #a16207;
}
.status-bespreken {
  background: #f97316;
}
.status-naar100 {
  background: #8b5cf6;
}
.status-uitschakelen {
  background: #6b7280;
}
.status-op100 {
  background: #10b981;
}
.status-uitgeschakeld {
  background: #fbbf24;
}
.status-naarcode {
  background: #06b6d4;
}
.status-geimplementeerd {
  background: #3b82f6;
}
.status-doorontwikkelen {
  background: #ec4899;
}
.status-hertesten {
  background: #0ea5e9;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.kanban-card {
  background: white;
  border: 1px solid #e3e2e0;
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  margin-bottom: 12px;
  max-width: 100%;
  overflow: hidden;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-status {
  background: #f1f1ef;
  color: #6f6e69;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.card-priority {
  font-size: 12px;
  font-weight: 600;
  color: #2383e2;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #37352f;
  margin: 0 0 12px 0;
  line-height: 1.3;
  padding-left: 8px;
}

.analyze-btn {
  background: #2383e2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-bottom: 12px;
}

.analyze-btn:hover {
  background: #1a6bb8;
}

.card-metrics {
  margin-bottom: 12px;
  display: none;
}

.metric-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.metric {
  flex: 1;
  text-align: center;
}

.metric-label {
  font-size: 10px;
  font-weight: 600;
  color: #6f6e69;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #37352f; /* Neutrale kleur zoals titel */
}

.card-content-section {
  background: #f7f6f3;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.content-header {
  font-size: 12px;
  font-weight: 600;
  color: #37352f;
  margin-bottom: 8px;
}

.content-date {
  font-size: 12px;
  color: #6f6e69;
  margin-bottom: 8px;
}

.content-items {
  font-size: 12px;
  color: #37352f;
  line-height: 1.4;
}

.content-more {
  color: #9b9a97;
  font-style: italic;
}

.open-btn {
  background: #2383e2;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.open-btn:hover {
  background: #1a6bb8;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #2383e2;
}

.kanban-card[draggable="true"] {
  cursor: move;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-column {
  transition: background-color 0.2s ease;
}

.kanban-column:hover {
  background-color: #e8f5e8;
}

.kanban-column.drag-over {
  background-color: #d4edda;
  border: 2px dashed #28a745;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

.kanban-card.dragging {
  transform: rotate(5deg) scale(0.95);
  opacity: 0.8;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.kanban-card.expanded {
  background: #fafafa;
  border-color: #2383e2;
}

.expanded button {
  background: #edf3eb !important;
  color: #008080 !important;
  font-weight: bold;
  line-height: 1 !important;
  padding: 8px 12px !important;
}

.expanded div:has(button) {
  text-align: right !important;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  color: #37352f;
  line-height: 1.4;
  flex: 1;
  margin-right: 12px;
}

.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.card-label {
  background: #f1f1ef;
  border: 1px solid #e3e2e0;
  color: #6f6e69;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #6f6e69;
  font-size: 16px;
  transition: all 0.2s ease;
  display: none;
}

.expand-btn:hover {
  background: #f1f1ef;
  color: #37352f;
}

.card-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-content.expanded {
  display: block;
  max-height: 1000px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f1ef;
}

.card-properties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.card-properties > * {
  flex: 1 1 calc(50% - 8px);
}

.card-property {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.property-label {
  color: #6f6e69;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-value {
  color: #37352f;
  font-size: 13px;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-score {
  background: #f1f1ef;
  color: #6f6e69;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.influence-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.influence-metric {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-label {
  color: #9b9a97;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.metric-value {
  font-size: 12px;
  color: #37352f; /* Neutrale kleur zoals titel */
  font-weight: 600;
}

.card-comments {
  color: #9b9a97;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Table View Styles */
.table-view {
  display: none;
  background: white;
  border: 1px solid #e3e2e0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
}

.table-view.active {
  display: block;
}

.table-container {
  overflow-x: auto;
  max-height: 80vh;
  overflow-y: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results-table th {
  background: #f7f6f3;
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: #6f6e69;
  border-bottom: 2px solid #e3e2e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.results-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.results-table th.sortable:hover {
  background: #edf3eb;
}

.sort-arrow {
  margin-left: 6px;
  font-size: 12px;
  color: #9b9a97;
  transition: color 0.2s ease;
}

.sort-arrow.active {
  color: #2383e2;
  font-weight: bold;
}

.results-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f1f1ef;
  vertical-align: middle;
}

.results-table tbody tr {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.results-table tbody tr:hover {
  background: #f9f9f8;
}

.results-table tr:last-child td {
  border-bottom: none;
}

/* Status badges in table */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.lopend {
  background: #fff3cd;
  color: #856404;
  border: none;
}

.status-badge.winnaar {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.verliezer {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.neutraal {
  background: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.status-badge.komende_sprint {
  background: #e1f5fe;
  color: #01579b;
  border: 1px solid #81d4fa;
}

/* Influence indicators */
.influence-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 60px;
  justify-content: center;
}

.influence-positive {
  background: #d4edda !important;
  color: #28a745 !important;
  font-weight: 600 !important;
}

.influence-negative {
  background: #f8d7da !important;
  color: #dc3545 !important;
  font-weight: 600 !important;
}

.influence-neutral {
  background: #e2e3e5;
  color: #6c757d;
}

.influence-na {
  background: #f8f9fa;
  color: #6c757d;
  font-style: italic;
}

/* Table filters */
#table-filters {
  background: #f7f6f3;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e3e2e0;
}

#table-filters .filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#table-filters .filter-btn {
  padding: 8px 16px;
  border: 1px solid #e3e2e0;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
}

#table-filters .filter-btn:hover {
  border-color: #2383e2;
  background: #f8f9ff;
  transform: translateY(-1px);
}

#table-filters .filter-btn.active {
  background: #2383e2;
  color: white;
  border-color: #2383e2;
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.view-btn {
  padding: 10px 20px;
  border: 1px solid #e3e2e0;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.view-btn:hover {
  border-color: #2383e2;
  background: #f8f9ff;
}

.view-btn.active {
  background: #2383e2;
  color: white;
  border-color: #2383e2;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Item detail modal styles */
.item-detail-header {
  background: white;
  padding: 24px;
  border-bottom: 1px solid #e3e2e0;
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.item-detail-content {
  padding: 24px;
  background: #f7f6f3;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.property-item {
  background: #f7f6f3;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #f1f1ef;
}

.property-label {
  font-size: 11px;
  color: #6f6e69;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.property-value {
  font-size: 14px;
  color: #37352f;
  font-weight: 500;
}

.loading-state {
  text-align: center;
  padding: 40px;
  color: #9b9a97;
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .kanban-board {
    flex-direction: column;
    gap: 16px;
  }

  .kanban-column {
    min-width: unset;
    width: 100%;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-header {
    display: none;
  }

  .table-cell::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #6f6e69;
    display: inline-block;
    min-width: 100px;
  }
}

/* Force search input visibility */
#search-input {
  display: block !important;
  visibility: visible !important;
}

/* Client label styling */
.client-label {
  background: #f0f2f5;
  color: #4a5568;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   🔐 AUTHENTICATION & LOGIN STYLING
   ============================================ */

/* Login Body */
.login-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Login Container */
.login-container {
  max-width: 420px;
  width: 100%;
}

/* Login Box */
.login-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.login-header p {
  color: #6f6e69;
  font-size: 14px;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid #e3e2e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Login Button */
.btn-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error Message */
.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

/* Login Footer */
.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-footer a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Login Info */
.login-info {
  margin-top: 20px;
  text-align: center;
}

.login-info p {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

/* ============================================
   👥 HEADER ACTIONS
   ============================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-info {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.user-info:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

/* User Menu Dropdown */
.user-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 80px 20px 20px 20px;
}

.user-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.user-menu-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 280px;
  z-index: 1;
}

.user-menu-header {
  background: #667eea;
  color: white;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
}

.user-menu-options {
  padding: 8px;
}

.user-menu-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: white;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.user-menu-btn:hover {
  background: #f0f8ff;
}

.user-menu-btn.logout {
  color: #e74c3c;
}

.user-menu-btn.logout:hover {
  background: #fee;
}

.btn-logout,
.btn-admin {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-logout {
  background: rgba(231, 76, 60, 0.9);
  color: white;
}

.btn-logout:hover {
  background: rgba(231, 76, 60, 1);
  transform: translateY(-1px);
}

.btn-admin {
  background: rgba(52, 152, 219, 0.9);
  color: white;
}

.btn-admin:hover {
  background: rgba(52, 152, 219, 1);
  transform: translateY(-1px);
}

/* ============================================
   🔍 FILTER CONTAINER & INPUTS
   ============================================ */

.table-filters-container {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-buttons {
  display: flex !important;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start !important;
}

.filter-inputs {
  display: flex !important;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-end;
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid #e3e2e0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-input-small {
  width: 70px;
  min-width: 70px;
  padding: 8px 8px;
}

.filter-input[type="text"] {
  width: 220px;
  min-width: 180px;
}

.filter-clear-btn {
  padding: 8px 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-clear-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

@media (max-width: 1400px) {
  .table-filters-container {
    flex-wrap: wrap;
  }
  
  .filter-inputs {
    width: 100%;
    justify-content: flex-start;
  }
  
  .filter-input[type="text"] {
    flex: 1;
    min-width: 150px;
  }
}

/* ============================================
   🎨 ADMIN PAGE STYLING
   ============================================ */

.admin-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

/* Create Login Form */
.create-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Radio Options */
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e3e2e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.radio-option:hover {
  border-color: #667eea;
  background: #f0f8ff;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: #667eea;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: #f0f8ff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-option span {
  font-size: 14px;
  color: #2c3e50;
}

/* Client Checkboxes */
.client-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #f7f6f3;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #e3e2e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-label:hover {
  background: #f0f8ff;
  border-color: #3498db;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background: #f7f6f3;
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e3e2e0;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1ef;
}

.admin-table tbody tr:hover {
  background: #fafaf9;
}

/* Client Badges */
.client-badge {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-small {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #16a34a;
  color: white;
}

.btn-primary:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #6f6e69;
  color: white;
}

.btn-secondary:hover {
  background: #5a5956;
  transform: translateY(-1px);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-edit {
  background: #3498db;
  color: white;
  margin-right: 8px;
}

.btn-edit:hover {
  background: #2980b9;
}

/* Form Message */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
}

.form-message.success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

.form-message.error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* ============================================
   🎨 MODAL STYLING
   ============================================ */

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e3e2e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.modal-close {
  background: #e3e2e0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #6f6e69;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #d1d0ce;
  color: #2c3e50;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e3e2e0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .user-info {
    flex: 1;
    text-align: center;
  }
  
  .login-box {
    padding: 32px 24px;
  }
  
  .admin-table {
    font-size: 13px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }
}

/* ============================================
   📊 DEVICE CATEGORY FILTER PANEL
   ============================================ */

#device-filter-panel {
  transition: all 0.3s ease;
}

#device-filter-content {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

#filter-panel-toggle-icon {
  transition: transform 0.3s ease;
}

#filter-indicator {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hiërarchische tabel styling */
.variant-main-row {
  background: #ffffff;
  font-weight: 600;
}

.variant-main-row td {
  background: #ffffff;
  border-bottom: 2px solid #e3e2e0 !important;
}

.variant-sub-row {
  background: #fafafa;
}

.variant-sub-row td {
  background: #fafafa;
  border-bottom: 1px solid #f1f1ef !important;
}

/* Responsive filter panel */
@media (max-width: 768px) {
  #device-filter-panel {
    padding: 12px;
  }
  
  #device-filter-content {
    margin-top: 12px;
    padding-top: 12px;
  }
  
  #device-filter-content > div:first-child {
    flex-direction: column;
    gap: 12px;
  }
  
  #device-filter-content button {
    width: 100%;
  }
  
  #filter-indicator {
    font-size: 12px;
    padding: 6px 10px;
  }
}
