.interview-session {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

/* Animated background pattern */
.interview-session::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.interview-main {
  flex: 1;
  display: flex;
  gap: 24px;
  padding: 24px;
  overflow: hidden;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.video-container {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.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(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.start-button {
  padding: 18px 40px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.start-button:hover::before {
  width: 300px;
  height: 300px;
}

.start-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.5);
}

.start-button:active {
  transform: translateY(-1px);
}

.overlay-text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
}

.interview-sidebar {
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow-y: auto;
  min-height: 0;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.sidebar-header h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.question-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.question-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

.question-text {
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 500;
}

.question-category {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 4px;
}

.transcript-section {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius-md);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.transcript-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}

.transcript-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  min-height: 120px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-weight: 400;
}

.placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.timer {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.status-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xs);
}

.status-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
}

.status-badge.speaking {
  background: var(--primary-gradient);
  color: white;
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge.listening {
  background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
  color: white;
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge.idle {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  }
}

.mic-indicator {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mic-level {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color) 0%, var(--success-light) 100%);
  transition: width 0.1s ease;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.interview-controls {
  padding: 24px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
  z-index: 1;
}

.browser-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #fb923c 100%);
  color: #000;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(251, 146, 60, 0.3);
}


.controls-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.control-button {
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.control-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.control-button:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

.control-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.stop-button {
  background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
  color: white;
}

.stop-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(239, 68, 68, 0.4);
}

.skip-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skip-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.recognition-error {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 12px 20px;
  margin: 0 20px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #fbbf24;
  box-shadow: var(--shadow-sm);
}

.start-listening-button {
  background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
  color: white;
}

.start-listening-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.4);
}

.start-listening-button:disabled {
  background: rgba(16, 185, 129, 0.3);
  color: rgba(255, 255, 255, 0.5);
}

/* 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;
  }
}