.interview-session {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: white;
  overflow: hidden;
}

.interview-main {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
  min-height: 0;
}

.video-container {
  flex: 1;
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.start-button {
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.overlay-text {
  margin-top: 16px;
  color: #ccc;
  font-size: 14px;
}

.interview-sidebar {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #2a2a2a;
  border-radius: 12px;
  padding: 24px;
  overflow-y: auto;
  min-height: 0;
  flex-shrink: 0;
}

.sidebar-header h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #3a3a3a;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.question-section {
  background: #3a3a3a;
  padding: 16px;
  border-radius: 8px;
}

.question-label {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 8px;
}

.question-category {
  font-size: 12px;
  color: #667eea;
  font-weight: 500;
}

.transcript-section {
  flex: 1;
  background: #3a3a3a;
  padding: 16px;
  border-radius: 8px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.transcript-label {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.transcript-text {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  min-height: 120px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.placeholder {
  color: #666;
  font-style: italic;
}

.timer {
  margin-top: 12px;
  font-size: 12px;
  color: #aaa;
}

.status-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #3a3a3a;
  border-radius: 6px;
}

.status-label {
  font-size: 12px;
  color: #aaa;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.speaking {
  background: #667eea;
  color: white;
}

.status-badge.listening {
  background: #4caf50;
  color: white;
}

.status-badge.idle {
  background: #666;
  color: #ccc;
}

.mic-indicator {
  width: 100px;
  height: 4px;
  background: #555;
  border-radius: 2px;
  overflow: hidden;
}

.mic-level {
  height: 100%;
  background: #4caf50;
  transition: width 0.1s ease;
}

.interview-controls {
  padding: 20px;
  background: #2a2a2a;
  border-top: 1px solid #3a3a3a;
}

.browser-warning {
  background: #ff9800;
  color: #000;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
}

.controls-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.control-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.control-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.stop-button {
  background: #f44336;
  color: white;
}

.stop-button:hover:not(:disabled) {
  background: #d32f2f;
}

.skip-button {
  background: #666;
  color: white;
}

.skip-button:hover:not(:disabled) {
  background: #777;
}

.recognition-error {
  background: #ffecb3;
  color: #856404;
  padding: 10px 20px;
  margin: 0 20px 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ffeeba;
}

.start-listening-button {
  background: #4caf50;
  color: white;
}

.start-listening-button:hover:not(:disabled) {
  background: #43a047;
}

.start-listening-button:disabled {
  background: #a5d6a7;
  color: #e8f5e9;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .interview-main {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .interview-sidebar {
    width: 100%;
    max-height: none;
    padding: 16px;
    order: 2;
  }

  .video-container {
    order: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: auto;
    max-height: 35vh;
    flex: none;
  }

  .controls-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .control-button {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .interview-session {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .interview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .video-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 30vh;
    min-height: 200px;
    flex: none;
    border-radius: 10px;
    order: 1;
  }

  .video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .interview-sidebar {
    width: 100%;
    padding: 12px;
    max-height: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    order: 2;
    border-radius: 10px;
  }

  .sidebar-header {
    flex-shrink: 0;
  }

  .sidebar-header h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .question-section {
    flex-shrink: 0;
    padding: 12px;
    background: #3a3a3a;
    border-radius: 8px;
  }

  .question-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .question-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
  }

  .question-category {
    font-size: 11px;
  }

  .transcript-section {
    flex: 1;
    min-height: 120px;
    max-height: 200px;
    padding: 12px;
    background: #3a3a3a;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
  }

  .transcript-label {
    font-size: 11px;
    margin-bottom: 6px;
    flex-shrink: 0;
  }

  .transcript-text {
    font-size: 13px;
    line-height: 1.5;
    min-height: 80px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .status-section {
    flex-shrink: 0;
    gap: 8px;
  }

  .status-item {
    padding: 10px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .status-label {
    font-size: 11px;
  }

  .status-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .mic-indicator {
    width: 80px;
    height: 4px;
  }

  .interview-controls {
    padding: 12px 8px;
    flex-shrink: 0;
    background: #2a2a2a;
    border-top: 1px solid #3a3a3a;
  }

  .controls-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .control-button {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    min-height: 44px;
    width: 100%;
    flex: none;
  }

  .start-button {
    padding: 12px 24px;
    font-size: 15px;
  }

  .overlay-text {
    font-size: 12px;
    margin-top: 10px;
    padding: 0 20px;
    text-align: center;
  }

  .recognition-error {
    margin: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .browser-warning {
    margin: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .interview-main {
    padding: 6px;
    gap: 8px;
  }

  .video-container {
    max-height: 28vh;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }

  .interview-sidebar {
    padding: 10px;
    gap: 10px;
  }

  .sidebar-header h2 {
    font-size: 15px;
  }

  .question-section,
  .transcript-section {
    padding: 10px;
  }

  .question-text {
    font-size: 13px;
  }

  .transcript-text {
    font-size: 12px;
    min-height: 70px;
  }

  .status-item {
    padding: 8px 10px;
  }

  .status-label {
    font-size: 10px;
  }

  .status-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .interview-controls {
    padding: 10px 6px;
  }

  .controls-buttons {
    gap: 6px;
  }

  .control-button {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 42px;
  }

  .start-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .overlay-text {
    font-size: 11px;
    margin-top: 8px;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .video-container {
    max-height: 25vh;
    aspect-ratio: 16 / 9;
  }

  .interview-sidebar {
    max-height: calc(75vh - 25vh - 80px);
  }

  .transcript-section {
    max-height: 150px;
  }
}
