/* --- APPLE-THEMED LIVE MATCHER SPECIFIC STYLES --- */

.sandbox-container {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
}

.interactive-workspace {
  background-color: var(--white);
  border: var(--border-light);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.workspace-controls {
  padding: 20px 24px;
  background-color: var(--soft-gray);
  border-bottom: var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.role-selector {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #D2D2D7;
  background-color: var(--white);
  outline: none;
  cursor: pointer;
}

.control-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 20px;
  background-color: var(--apple-blue);
  color: var(--white);
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.control-btn:hover {
  opacity: 0.9;
}

.canvas-area {
  position: relative;
  height: 480px;
  width: 100%;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.candidate-list {
  background-color: var(--white);
  border: var(--border-light);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.02);
}

.candidate-item {
  border-radius: 12px;
  border: 1px solid #E5E5EA;
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  background-color: var(--soft-gray);
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.candidate-item:hover, .candidate-item.selected {
  background-color: var(--apple-blue);
  color: var(--white);
  border-color: var(--apple-blue);
  transform: translateX(4px);
}

.candidate-item.selected .match-percent {
  color: var(--white);
}

.match-percent {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 13px;
  color: var(--apple-blue);
}

.explain-panel {
  background-color: var(--dark-gray);
  color: var(--white);
  border-radius: 20px;
  padding: 30px;
  min-height: 250px;
}

.explain-header {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.explain-detail-row {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #A1A1A6;
}

.explain-detail-row span {
  color: var(--sky-blue);
}

/* iOS Toggle Switch */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #1D1D1F;
}

.switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(120, 120, 128, 0.16);
  border-radius: 34px;
  transition: .3s;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: .3s;
}

input:checked + .slider-switch {
  background-color: #34C759; /* iOS green */
}

input:checked + .slider-switch:before {
  transform: translateX(20px);
}
