/* cyberinterview.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #333;
  }
  
  .interview-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #2c3e50;
  }

  .accordion-body {
    padding: 20px;
    display: none; /* Start hidden */
  }
  .accordion-body.active {
    display: block; /* Show when active */
  }
  
  
  /* Accordion Styling */
  .accordion-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #fafafa;
  }
  
  .accordion-header {
    background-color: #34495e;
    color: #fff;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .accordion-header:hover {
    background-color: #2c3e50;
  }
  
  /* Listen Button */
  .speak-button {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 10px 16px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .speak-button:hover {
    background-color: #1f6392;
  }
  
  
  .interview-form label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #2c3e50;
  }
  
  .interview-form textarea {
  width: 97%;
  height: 200px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  margin-top: 8px;
  resize: vertical;
  font-size: 1rem;
  background: linear-gradient(145deg, #f0f0f0, #fafafa);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1),
              -4px -4px 10px rgba(255,255,255,0.7);
  transition: all 0.3s ease-in-out;
  outline: none;
}

.interview-form textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 10px rgba(74,144,226,0.3);
  background: #fff;
}

  
  .interview-form button[type="submit"],
  .interview-form button[type="reset"],
  .clear-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 18px;
    margin: 20px 10px 0 0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .interview-form button[type="submit"]:hover,
  .interview-form button[type="reset"]:hover,
  .clear-button:hover {
    background-color: #1e8449;
  }
  
  /* Voice Selector */
  #voiceSelect {
    margin-left: 10px;
    padding: 5px;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 10px;
  }
  
  /* Analysis Section */
  .analysis {
    margin-top: 10px;
  }
  
  .analysis button {
    margin-right: 10px;
    margin-top: 5px;
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
  }
  
  .analysis button:hover {
    background-color: #ca6f1e;
  }
  
  /* Feedback and Model Answer Sections */
  .feedback,
  .model-answer {
    margin-top: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-left: 5px solid #3498db;
    border-radius: 8px;
    display: none;
  }

  #savedRecordingsList .recording-item {
    margin: 12px 0;
    padding: 12px 16px;
    background: linear-gradient(to right, #f9f9f9, #eaeaea);
    border: 1px solid #ccc;
    border-left: 5px solid #4CAF50; /* visual cue for "saved" status */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.3s ease;
  }
  
  #savedRecordingsList .recording-item:hover {
    background: #f0f0f0;
  }
  
  #savedRecordingsList .recording-item button,
  #savedRecordingsList .recording-item a {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    text-decoration: none;
  }
  
  #savedRecordingsList .recording-item button:hover,
  #savedRecordingsList .recording-item a:hover {
    background: #45a049;
  }
  
  #savedRecordingsList .recording-item span {
    font-size: 0.85rem;
    color: #555;
    margin-left: auto;
  }
  
  
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .interview-wrapper {
      padding: 20px;
    }
  
    .accordion-header {
      font-size: 0.95rem;
    }
  
    .interview-form button {
      width: 100%;
      margin: 10px 0;
    }
  
    .speak-button {
      width: 100%;
    }
  
    .analysis button {
      width: 100%;
      margin-bottom: 8px;
    }
  }

  .toggle-live-preview {
    margin-right: 5px;
    transform: scale(1.2);
  }

 /* ============ Base Theme ============ */
:root {
  --bg: #f3f5f9;
  --text: #1f1c2c;
  --card: #fff;
  --accent: #00ffe0;
  --nav-bg: #1f1c2c;
  --nav-text: white;
}

.dark-theme {
  --bg: #1e1e2f;
  --text: #ffffff;
  --card: #2b2b3c;
  --nav-bg: #12121a;
  --nav-text: #d0d0ff;
  --accent: #00ffe0;
}

/* ============ Global Styling ============ */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* ============ Navbar & Header ============ */
.modern-header {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding-bottom: 10px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
}

.nav-links button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--nav-text);
}

/* Slogan */
.slogan {
  text-align: center;
  margin-top: 5px;
  font-size: 1rem;
  color: #d0d0ff;
  font-weight: 300;
}

/* Underline */
.header-underline {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 15px auto;
  border-radius: 2px;
}

/* ============ Main Content ============ */
.interview-wrapper {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style for the "How to Use" button */
#openAppInfoModal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #00FFE0;
  color: #1f1c2c;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#openAppInfoModal:hover {
  background: #1f1c2c;
  color: #00FFE0;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); 
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  position: relative;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

/* General button styles */
.analysis button {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  margin: 5px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.analysis button:hover:not(:disabled) {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.analysis button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Style video container to look like a monitor */
.video-section {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.video-section::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

.video-section label {
  font-size: 0.9rem;
  color: #ccc;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.video-section input[type="checkbox"] {
  margin-right: 8px;
}

/* Default video style for recorded video */
.video-section video {
  display: block;
  width: 50%; /* Recorded video takes full width */
  height: 300px;
  border-radius: 8px;
  background: #000;
  border: 4px solid #333;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.3);
  object-fit: cover;
  transition: transform 0.3s;
}

/* Live preview smaller width */
.video-section .live-preview {
  width: 50%; /* Smaller width for live preview */
  height: 300px;
  margin-top: 10px;
}

/* Remove separate max-height styles */
.recorded-video {
  display: none;
  margin-top: 10px;
}

/* Optional hover scaling effect */
.video-section video:hover {
  transform: scale(1.02);
}


/* Style download link and reset button */
.video-download-link,
.video-reset-btn {
  display: inline-block;
  margin-top: 10px;
  color: #00bcd4;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s;
}

.video-download-link:hover,
.video-reset-btn:hover {
  color: #0097a7;
}

/* Modern feedback boxes */
.feedback,
.model-answer,
.score-result {
  background-color: #f1f1f1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  color: #333;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Clear button in red */
.clear-button {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

.clear-button:hover {
  background-color: #b02a37;
}

/* Optional: subtle glow effect on hover */
.video-section:hover {
  box-shadow: 0 0 12px rgba(0, 188, 212, 0.3);
}

/* General styles for the button */
#videoHistoryBtn {
  background-color: #4A90E2;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#videoHistoryBtn:hover {
  background-color: #357ABD;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Modal container */
#videoHistoryModal {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  max-height: 80%;
  overflow-y: auto;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

/* Modal header */
#videoHistoryModal h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
}

/* Grid of thumbnails */
#videoHistoryList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

/* Individual thumbnail styling */
.thumbnail {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.thumbnail p {
  margin: 8px;
  font-size: 0.85rem;
  color: #555;
}

/* Close button styling */
#videoHistoryModal button.close-btn {
  background-color: #FF5C5C;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

#videoHistoryModal button.close-btn:hover {
  background-color: #E04B4B;
}

/* Subtle fade-in animation for the modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Common styles for both Download and Delete buttons */
a[href$=".mp4"],
.delete-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Specific style for Download link */
a[href$=".mp4"] {
  background-color: #4CAF50; /* Green */
  color: white;
  border: none;
}

a[href$=".mp4"]:hover {
  background-color: #45a049;
}

/* Specific style for Delete button */
.delete-btn {
  background-color: #f44336; /* Red */
  color: white;
  border: none;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

/* Modernized Modal Styling */
.question-selection-modal .modal-content {
  max-height: 50vh;
  overflow-y: auto;
  border: none;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f4f8 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: #2d3748; /* Dark gray for text */
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #e0e7ff; /* Purple & light purple for scrollbars */
}

/* Webkit-based browsers */
.question-selection-modal .modal-content::-webkit-scrollbar {
  width: 10px;
}

.question-selection-modal .modal-content::-webkit-scrollbar-track {
  background: #e0e7ff;
  border-radius: 8px;
}

.question-selection-modal .modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #4f46e5);
  border-radius: 8px;
  border: 2px solid #e0e7ff;
  transition: background 0.3s ease;
}

.question-selection-modal .modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4f46e5, #4338ca);
}

/* Smooth fade-in animation */
.question-selection-modal .modal-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInModal 0.5s ease-out forwards;
}

@keyframes fadeInModal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks for small screens */
@media (max-width: 600px) {
  .question-selection-modal .modal-content {
    max-height: 65vh;
    padding: 1rem;
    border-radius: 12px;
  }
}

/* Optional: Stylish header for modal content */
.question-selection-modal .modal-content h2,
.question-selection-modal .modal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #4f46e5;
}

/* Optional: Highlight interactive elements inside modal */
.question-selection-modal .modal-content button,
.question-selection-modal .modal-content a {
  background: #6366f1;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  transition: background 0.3s ease;
}

.question-selection-modal .modal-content button:hover,
.question-selection-modal .modal-content a:hover {
  background: #4f46e5;
}

/* Optional: Subtle backdrop effect for entire modal */
.question-selection-modal::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  backdrop-filter: blur(4px); /* optional soft blur effect */
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0,0,0,0.3);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 1s step-start infinite;
    color: #333;
    font-weight: bold;
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }

/* 🌐 Fullscreen Overlay with Glassmorphism */
.ollama-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 2rem;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* 📦 Modal Content - Bold, Elegant, Square Layout */
.ollama-modal-content {
  background: #56bac7;
  border-radius: 20px;
  width: 92%;
  max-width: 1000px;
  height: 90vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2.5rem 2rem 2rem;
  box-sizing: border-box;
  animation: fadeInModal 0.35s ease-out;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  position: relative;
  scroll-behavior: smooth;
}

/* ❌ Close Button (Top Right) */
.ollama-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  color: #999;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.ollama-modal-close:hover {
  color: #333;
}

/* ✨ Custom Scrollbar */
.ollama-modal-content::-webkit-scrollbar {
  width: 10px;
}
.ollama-modal-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.ollama-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}
.ollama-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a5a5a5;
}

/* 📖 Title */
.ollama-modal-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: #222;
  text-align: center;
}

/* 🔗 Links */
.ollama-modal-content a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}
.ollama-modal-content a:hover {
  text-decoration: underline;
  color: #0a58ca;
}

/* 🔘 Button */
.ollama-modal-content button {
  background: linear-gradient(135deg, #0d6efd, #2563eb);
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}
.ollama-modal-content button:hover {
  background: #084298;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* 🧾 Code */
.ollama-modal-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 🧭 Instruction Steps */
.ollama-steps {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}
.ollama-steps li {
  margin-bottom: 1.75rem;
  background: #f8f9fa;
  border-left: 5px solid #0d6efd;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}
.ollama-steps li:hover {
  transform: translateY(-2px);
}
.ollama-steps li strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #333;
  font-size: 1.05rem;
}

/* 🖼️ Images */
.ollama-steps img {
  width: 100%;
  border-radius: 10px;
  margin-top: 0.75rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.ollama-steps img:hover {
  transform: scale(1.015);
}

/* 🎬 Modal Animation */
@keyframes fadeInModal {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 📱 Responsive Tweaks */
@media (max-width: 768px) {
  .ollama-modal-content {
    height: 94vh;
    width: 95%;
    padding: 1.5rem 1.2rem 2rem;
  }

  .ollama-modal-content h2 {
    font-size: 1.75rem;
  }

  .ollama-modal-content button {
    width: 100%;
  }

  .ollama-steps li {
    padding: 1rem;
  }
}

#customInterviewForm {
  background: linear-gradient(to right, #0a79e8, #f3f8ff);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 35px;
  border: 1px solid rgba(180, 200, 255, 0.3);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  max-width: 680px;
  margin-top: 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease-in-out;
  animation: fadeIn 0.5s ease-in;
}

#customInterviewForm h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 22px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
  text-shadow: 0 1px 0 #fff;
}

#customInterviewForm label {
  font-weight: 600;
  font-size: 15px;
  color: #2e3c63;
  margin-bottom: 6px;
  display: inline-block;
}

#customInterviewForm input,
#customInterviewForm textarea {
  width: 100%;
  padding: 13px 15px;
  margin-top: 8px;
  margin-bottom: 22px;
  border-radius: 10px;
  border: 1px solid #d0d8e5;
  background-color: #e9e4e4;
  font-size: 16px;
  color: #2c3e50;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease-in-out;
}

#customInterviewForm input:focus,
#customInterviewForm textarea:focus {
  background-color: #0e5be9;
  border-color: #5c9ded;
  box-shadow: 0 0 0 3px rgba(92, 157, 237, 0.25);
  outline: none;
}

#customInterviewForm button {
  background: linear-gradient(135deg, #5c9ded, #357abd);
  color: white;
  padding: 13px 22px;
  font-size: 15px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

#customInterviewForm button:hover {
  background: linear-gradient(135deg, #357abd, #2b6ab1);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

#customInterviewForm button:disabled {
  background: #cfd8dc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

#regenerateInterviewBtn {
  background: #f0f4ff;
  color: #2a3b5d;
  border: 1px solid #ccd9f0;
  margin-left: 10px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

#regenerateInterviewBtn:hover {
  background-color: #e1ecff;
  border-color: #b3ccf5;
  color: #1c2e4a;
}

#loader {
  margin-top: 18px;
  font-style: italic;
  color: #555;
  font-size: 15px;
}

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


/* Toggle Button Styling */
.modern-toggle-btn {
  background-color: #28a745;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 10px;
}

.modern-toggle-btn:hover {
  background-color: #218838;
}

/* Fully Scoped Modal Styles */
#micTestModal.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

#micTestModal .modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 30px 40px;
  border: 1px solid #ddd;
  border-radius: 16px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  animation: micTestFadeIn 0.4s ease;
}

#micTestModal .close-modal {
  color: #aaa;
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

#micTestModal .close-modal:hover {
  color: #000;
}

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

#micTestModal .mic-diagnostic h3,
#micTestModal h2 {
  color: #333;
  margin-bottom: 20px;
}

#micTestModal .mic-diagnostic select,
#micTestModal .mic-diagnostic button {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 8px 4px 12px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

#micTestModal .mic-diagnostic button:hover {
  background-color: #f0f0f0;
}

#micTestModal canvas {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 10px 0;
  background-color: #fafafa;
}

#micTestModal .analysis {
  margin-top: 20px;
}

#micTestModal .analysis button {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 8px 4px 12px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

#micTestModal .analysis button:hover {
  background-color: #f0f0f0;
}

#micTestModal #recordingsList {
  margin-top: 20px;
}

.mic-test-btn {
  background: linear-gradient(135deg, #4a90e2, #357ABD);
  color: white;
  padding: 12px 20px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.mic-test-btn:hover {
  background: linear-gradient(135deg, #357ABD, #2c6bb2);
}

.mic-diagnostic {
      margin-top: 30px;
      padding: 20px 25px;
      background-color: #ecf0f1;
      border-left: 5px solid #3498db;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
      max-width: 600px;
    }

    .mic-diagnostic h3 {
      margin-top: 0;
      font-size: 1.25rem;
      color: #2c3e50;
    }

    #volume-meter, #waveform {
      width: 100%;
      height: 60px;
      background: #ddd;
      border-radius: 8px;
      margin-top: 10px;
    }

    #noise-level {
      margin-top: 12px;
      font-weight: 600;
    }

    #mic-status {
      margin: 12px 0;
      color: #2c3e50;
      font-weight: 500;
    }

    button {
      padding: 10px 20px;
      background-color: #27ae60;
      color: white;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
      margin-right: 10px;
    }

    button:hover:not(:disabled) {
      background-color: #1e8449;
      transform: scale(1.03);
    }

    button:disabled {
      background-color: #999;
      cursor: not-allowed;
      transform: none;
    }

    .analysis {
      margin-top: 20px;
      padding: 15px;
      background: #fefefe;
      border: 1px solid #ccc;
      border-radius: 8px;
      max-width: 600px;
    }

    .analysis p {
      margin: 8px 0;
    }

    select {
      margin-top: 10px;
      padding: 8px;
      font-size: 1rem;
      border-radius: 6px;
      border: 1px solid #ccc;
    }

    .recording-entry {
  margin: 5px 0;
}
.recording-entry button {
  padding: 5px 10px;
  margin: 3px;
}




