:root {
  --primary-color: #1a365d;
  --secondary-color: #3182ce;
  --accent-color: #e53e3e;
  --success-color: #38a169;
  --warning-color: #d69e2e;
  --background-color: #f7fafc;
  --text-color: #2d3748;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  font-size: 16px;
}

.header {
  background: var(--gradient-primary);
  color: white;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.header h1 {
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.header p {
  font-size: 16px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.chat-window, .chat-container {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

#messages {
  height: 500px;
  overflow-y: auto;
  padding: 24px;
  background: var(--card-bg);
  margin-bottom: 0;
  position: relative;
}

#messages::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.message {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.6;
  position: relative;
  animation: messageSlideIn 0.3s ease-out;
  box-shadow: var(--shadow-sm);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

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


.message br {
  display: block;
  content: "";
  margin: 0.5em 0;
}

.user-message {
  background: var(--gradient-success);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.user-message::before {
  content: '👤';
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  background: var(--card-bg);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.agent-message {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.agent-message::before {
  content: '🤖';
  position: absolute;
  right: -35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  background: var(--card-bg);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.system-message {
  background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
  color: var(--warning-color);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #f6ad55;
  font-weight: 500;
  max-width: 70%;
}

.system-message::before {
  content: 'ℹ️';
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  background: var(--card-bg);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

#messageForm {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

input[type="text"] {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 16px;
  background: var(--card-bg);
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
  transform: translateY(-1px);
}

input[type="text"]::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

button {
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

#sendButton {
  background: var(--gradient-success);
  color: white;
  box-shadow: var(--shadow-md);
}

#sendButton:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  box-shadow: none;
}

#startAudioButton {
  background: var(--gradient-warning);
  color: white;
  box-shadow: var(--shadow-md);
}

#stopAudioButton {
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

#stopAudioButton:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  box-shadow: none;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Scrollbar styling */
#messages::-webkit-scrollbar {
  width: 8px;
}

#messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#messages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#messages::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Image button styling */
#imageButton {
  background: #6c757d;
  margin-right: 8px;
  min-width: auto;
  padding: 8px 12px;
  font-size: 14px;
}

#imageButton:hover {
  background: #5a6268;
}

#imageButton.selected {
  background: #28a745;
  color: white;
}

#imageButton.selected:hover {
  background: #218838;
}

/* Image preview in messages */
.message img {
  border: 2px solid #e0e0e0;
  margin: 4px 0;
  display: block;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
}

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

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 24px;
}

.modal-content p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Resume Upload Styles */
.upload-container {
  width: 100%;
}

.upload-area {
  border: 2px dashed #4a90e2;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: #357abd;
  background: #e3f2fd;
  transform: translateY(-2px);
}

.upload-area.dragover {
  border-color: #357abd;
  background: #e3f2fd;
  transform: scale(1.02);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.upload-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.upload-subtext {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.upload-formats {
  font-size: 12px;
  color: #999;
}

.upload-status {
  text-align: center;
  padding: 20px;
  background: #f0f7ff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.status-icon {
  font-size: 36px;
  margin-bottom: 10px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 14px;
  color: #4a90e2;
  font-weight: 500;
}

.upload-actions {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
  transform: translateY(-1px);
}

/* Interview Status Badge */
.interview-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gradient-success);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 15px;
  animation: pulse 2s infinite;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.interview-badge::before {
  content: '🎯';
  margin-right: 8px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Question Numbering System */
.question-message {
  background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
  border: 2px solid #38b2ac;
  border-left: 6px solid #38b2ac;
  position: relative;
  margin: 20px 0;
}

.question-message::before {
  content: attr(data-question-number);
  position: absolute;
  top: -10px;
  left: 20px;
  background: #38b2ac;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.question-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  padding: 16px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.question-progress-item {
  display: flex;
  align-items: center;
  margin: 0 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #e2e8f0;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.question-progress-item.active {
  background: var(--gradient-success);
  color: white;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.question-progress-item.completed {
  background: #38a169;
  color: white;
}

.question-progress-item::before {
  content: '○';
  margin-right: 8px;
  font-size: 16px;
}

.question-progress-item.active::before {
  content: '●';
}

.question-progress-item.completed::before {
  content: '✓';
}

/* Interview Timer */
.interview-timer {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--gradient-success);
  color: white;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  margin-left: 15px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.interview-timer::before {
  content: '⏱️';
  margin-right: 8px;
  font-size: 16px;
}

.interview-timer.warning {
  background: var(--gradient-warning);
  animation: timerPulse 1s infinite;
}

.interview-timer.danger {
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
  animation: timerPulse 0.5s infinite;
}

@keyframes timerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-lg);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 101, 101, 0.5);
  }
}

#stopInterviewButton {
  background-color: #e74c3c;
  color: white;
}

#stopInterviewButton:hover {
  background-color: #c0392b;
}

/* Report Card Modal */
.report-card-content {
  background: var(--card-bg);
  margin: 2% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s ease;
  position: relative;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.report-section {
  background: var(--bg-color);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.report-section h3 {
  color: var(--text-color);
  margin-bottom: 20px;
  font-size: 1.3em;
  font-weight: 600;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-report,
.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 10;
}

.close-report:hover,
.close-modal:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* Download Report Button */
.download-btn {
  position: absolute;
  right: 60px;
  top: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 10;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.report-header {
  background: var(--gradient-primary);
  padding: 40px 30px;
  border-radius: 20px 20px 0 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.report-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="reportGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23reportGrain)"/></svg>');
  opacity: 0.3;
}

.report-header h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.report-body {
  padding: 30px;
}

.candidate-info {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.candidate-info h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #333;
}

.candidate-info p {
  margin: 5px 0;
  color: #666;
}

.overall-score-section {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.score-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.progress-ring-circle {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  stroke-dasharray: 439.8;
  stroke-dashoffset: 439.8;
  stroke-linecap: round;
  stroke-width: 12;
}

.score-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}

.score-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.score-text .score-label {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
}

.category-scores {
  margin: 30px 0;
}

.score-item {
  margin: 15px 0;
}

.score-item .score-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.score-bar {
  position: relative;
  width: 100%;
  height: 36px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-bar-fill {
  height: 100%;
  background: var(--gradient-success);
  border-radius: 18px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  position: relative;
  overflow: hidden;
}

.score-bar-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.score-value {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.questions-stats {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
}

.stat-box {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.feedback-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.strengths,
.improvements {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}

.strengths h4,
.improvements h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #333;
}

.strengths ul,
.improvements ul {
  margin: 0;
  padding-left: 20px;
}

.strengths li,
.improvements li {
  margin: 8px 0;
  color: #555;
  line-height: 1.5;
}

.recommendation-section {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-radius: 12px;
  margin-top: 30px;
}

.recommendation-section h4 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.recommendation-text {
  font-size: 16px;
  color: #555;
  font-weight: 600;
  margin: 0;
}

/* Q&A Feedback Section */
.qa-feedback-section {
  margin-top: 30px;
  padding: 25px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.qa-feedback-section h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qa-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qa-question {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.qa-response {
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  background: #f7fafc;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #3182ce;
}

.qa-correct-answer {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.5;
  background: #f0fff4;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid #38a169;
  border: 1px solid #9ae6b4;
  box-shadow: 0 1px 3px rgba(56, 161, 105, 0.1);
}

.qa-feedback {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.qa-score-impact {
  color: #4a5568;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
}

.qa-issues, .qa-improvements {
  margin-bottom: 8px;
}

.qa-issues h5, .qa-improvements h5 {
  font-size: 12px;
  font-weight: 600;
  color: #e53e3e;
  margin: 0 0 5px 0;
}

.qa-improvements h5 {
  color: #38a169;
}

.qa-issues ul, .qa-improvements ul {
  margin: 0;
  padding-left: 15px;
  font-size: 11px;
  color: #4a5568;
}

.qa-issues li, .qa-improvements li {
  margin-bottom: 3px;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .header {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .header h1 {
    font-size: 24px;
  }
  
  .header p {
    font-size: 14px;
  }
  
  .chat-window {
    margin-bottom: 20px;
  }
  
  #messages {
    height: 400px;
    padding: 16px;
  }
  
  .message {
    max-width: 95%;
    padding: 12px 16px;
    margin-bottom: 16px;
  }
  
  .message::before {
    display: none; /* Hide avatars on mobile */
  }
  
  .input-wrapper {
    flex-direction: column;
    gap: 8px;
  }
  
  input[type="text"] {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  button {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .question-progress {
    flex-wrap: wrap;
    padding: 12px;
  }
  
  .question-progress-item {
    margin: 4px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .interview-timer {
    font-size: 16px;
    padding: 10px 16px;
  }
  
  .feedback-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .questions-stats {
    flex-direction: column;
    gap: 15px;
    padding: 16px;
  }
  
  .report-card-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .report-header {
    padding: 30px 20px;
  }
  
  .report-header h2 {
    font-size: 24px;
  }
  
  .report-body {
    padding: 20px;
  }
  
  .score-circle {
    width: 120px;
    height: 120px;
  }
  
  .score-number {
    font-size: 28px;
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
  }
  
  .download-btn {
    right: 50px;
    top: 15px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 20px;
  }
  
  .message {
    padding: 10px 12px;
  }
  
  .question-progress-item {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .interview-timer {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-number {
    font-size: 24px;
  }
}

/* Accessibility Features */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators for keyboard navigation */
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #0066cc;
    --text-color: #000000;
    --background-color: #ffffff;
    --border-color: #000000;
  }
  
  .message {
    border: 2px solid var(--border-color);
  }
  
  .score-bar-fill {
    background: var(--primary-color);
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
} 