/* Submit button styled like 'toevoegen' tab */
.vsac-tab-add-btn {
  display: inline-block;
  width: auto;
  padding: 12px 18px;
  color: #217a3a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  background: #e6f4ea;
  border: 1px solid #b6e2c2;
  transition: background 0.15s, color 0.15s;
  font-size: 16px;
  cursor: pointer;
}

.vsac-tab-add-btn:hover {
  background: #c6e9d2;
  color: #064d9d;
}

/* Filter Card */
.vsac-filter-card {
  border-radius: 12px;
  padding: 10px 0px 10px 0px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

@media (max-width: 600px) {
  .vsac-filter-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* Badges */
.vsac-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 12px;
  line-height: 1.4;
  vertical-align: middle;
  margin-right: 4px;
  margin-bottom: 2px;
}

.vsac-badge--free {
  background: #cbe4d1;
  color: #114e1f;
  border: 1px solid #28a745;
  font-weight: bold;
}

.course-url {
  color: #064d9d;
  text-decoration: none;
  font-weight: 500;
}

.course-url:hover {
  text-decoration: underline;
}

.vsac-badge--status {
  background: #eaf1fb;
  color: #064d9d;
  border: 1px solid #b6c8e2;
}

/* Buttons */
.vsac-btn {
  display: inline-block;
  background: #05A2E0;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.vsac-btn:hover,
.vsac-btn:focus {
  background: #05386b;
  color: #fff;
}

.vsac-btn--subtle {
  background: #f3f6fa;
  color: #064d9d !important;
  border: 1px solid #e0e7ef;
  font-weight: 400;
  padding: 8px 14px;
  box-shadow: none;
  transition: background 0.15s, color 0.15s;
}

.vsac-btn--subtle:hover,
.vsac-btn--subtle:focus {
  background: #e6eef7;
  color: #05386b !important;
}

a.vsac-wrap {
  overflow: auto;
}

/* Table Wrapper */
.vsac-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-color: #cbd5e1 #f1f5f9;
  scrollbar-width: thin;
  position: relative;
}

@media (max-width: 800px) {
  .vsac-table-wrap {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .vsac-table {
    min-width: 600px;
  }
}

/* Swipe hint */
.vsac-table-wrap::after {
  content: '← scroll →';
  display: none;
  position: absolute;
  right: 18px;
  bottom: 2px;
  font-size: 12px;
  color: #b0b8c9;
  background: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 800px) {
  .vsac-table-wrap::after {
    display: block;
  }
}

/* Table */
.vsac-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.vsac-table th,
.vsac-table td {
  border: none;
  padding: 14px 16px;
  vertical-align: middle;
  text-align: left;
}

.vsac-table th {
  background: #f5f7fa;
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 600;
  font-size: 15px;
  height: 54px;
  border-bottom: 2px solid #e3e8ee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  letter-spacing: 0.01em;
}

.vsac-table tbody tr:nth-child(even) {
  background: #f6f8fa;
}

.vsac-table tbody tr:nth-child(odd) {
  background: #fff;
}

.vsac-table tbody tr:hover {
  background: #eaf2fb !important;
  transition: background 0.15s;
}

/* Rounded corners */
.vsac-table tbody tr:first-child td:first-child {
  border-top-left-radius: 14px;
}

.vsac-table tbody tr:first-child td:last-child {
  border-top-right-radius: 14px;
}

.vsac-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

.vsac-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

.vsac-num {
  text-align: left;
  white-space: nowrap;
}

.vsac-error {
  padding: 10px;
  border: 1px solid #c00;
  color: #c00;
}

.vsac-registration-form fieldset {
  margin-bottom: 2em;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1em;
}

.vsac-registration-form label {
  display: block;
  margin-bottom: 8px;
}

.vsac-deelnemer-block {
  margin-bottom: 1.5em;
  border-radius: 6px;
}

.vsac-registration-form input[type="text"],
.vsac-registration-form input[type="email"],
.vsac-registration-form input[type="date"],
.fusion-disable-outline input,
.fusion-disable-outline select,
.fusion-disable-outline textarea {
  width: 100%;
  max-width: 320px;
  font-size: 14px;
  color: #333;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 8px;
}

.vsac-algemeen-block.vsac-grid {
  display: grid;
  gap: 10px;
}

.vsac-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 0.5em;
}

.vsac-grid-col {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 320px;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
}

.vsac-grid-row {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .vsac-grid-row {
    flex-direction: column;
    gap: 0.5em;
  }

  .vsac-grid-col {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 600px) {
  .vsac-grid-row {
    display: block;
    gap: 0;
    margin-bottom: 0;
  }

  .vsac-grid-col {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}

#vsac-add-deelnemer {
  margin-top: 8px;
}

.vsac-tooltip-icon {
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
  position: relative;
  font-style: normal;
  font-size: 16px;
  color: #0073aa;
}

.vsac-tooltip-text {
  visibility: hidden;
  width: 220px;
  background: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vsac-tooltip-icon:focus .vsac-tooltip-text,
.vsac-tooltip-icon:hover .vsac-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.vsac-field-error {
  border: 2px solid #e74c3c !important;
  background: #fff0f0;
}