* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, Bl inkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

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

/* Tool Selector */
.tool-selector {
  padding: 40px;
  width:80%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tool-selector h2 {
  color: #2d3436;
  margin-bottom: 30px;
  font-size: 28px;
  text-align: center;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tool {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-weight: 600;
  color: #2d3436;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tool:hover:not(.disabled) {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tool.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f0f0f0;
}

.tool.coming-soon {
  position: relative;
  gap: 8px;
}

.tool.coming-soon .tool-main {
  opacity: 0.6;
}

.coming-soon-label {
  font-size: 12px;
  font-weight: 500;
  color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border: 1px solid #667eea;
  border-radius: 12px;
  background-color: #f8f9ff;
}

/* Tool Panel */
.tool-panel {
  padding: 40px;
  width:60%;
  background:#f8f9fa;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.tool-header span {
  font-size: 24px;
  font-weight: bold;
  color: #2d3436;
}

#change-tool-btn {
  padding: 10px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
  margin-left: 20px;
}

#change-tool-btn:hover {
  background: #764ba2;
}

/* Search Controls */
.search-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #e0e0e0;
}

.search-controls.hidden {
  display: none;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  color: #636e72;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 5px;
}

.keyword-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.max-results-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

input {
  padding: 15px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
}

input:hover {
  border-color: #b8c2ec;
}

input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input::placeholder {
  color: #a0a0a0;
}

input.error {
  border-color: #ff6b6b;
  background-color: #fff5f5;
}

input.error:focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.input-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  animation: slideDown 0.3s ease;
}

.input-error.active {
  display: block;
}

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

select {
  padding: 15px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 45px;
}

select:hover {
  border-color: #b8c2ec;
}

select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#search-btn {
  padding: 16px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#search-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Channel Analyzer Button */
#analyze-channel-btn {
  padding: 16px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

#analyze-channel-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#analyze-channel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced Channel Animation Display */
.animation-display {
  display: none;
  min-height: 500px;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-radius: 20px;
  padding: 0;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.animation-display.active {
  display: block;
  animation: fadeIn 0.8s ease;
}

.video-titles-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
}

.analysis-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(1px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  transition: opacity 0.3s ease;
}

.analysis-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.analysis-overlay h3 {
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.analysis-overlay p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.analysis-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.video-title-bubble {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  min-width: 100px;
  max-width: 200px;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  word-wrap: break-word;
  overflow-wrap: break-word;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.video-title-bubble:hover {
  transform: scale(1.15) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 50;
}

.video-title-bubble.pop-out {
  animation: bubblePopOut 0.5s ease-in forwards;
}

.video-title-bubble.pop-in {
  animation: bubblePopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Color variations for video titles */
.video-title-item:nth-child(5n+1) { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.video-title-item:nth-child(5n+2) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.video-title-item:nth-child(5n+3) { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.video-title-item:nth-child(5n+4) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.video-title-item:nth-child(5n+5) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bubbleFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(1deg);
  }
  50% {
    transform: translateY(0px) translateX(-15px) rotate(-1deg);
  }
  75% {
    transform: translateY(-10px) translateX(5px) rotate(0.5deg);
  }
}

@keyframes bubblePopIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2) rotate(90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes bubblePopOut {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3) rotate(-90deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
}

@keyframes bubbleDrift {
  0% {
    transform: translateX(0px) translateY(0px);
  }
  25% {
    transform: translateX(30px) translateY(-20px);
  }
  50% {
    transform: translateX(-20px) translateY(15px);
  }
  75% {
    transform: translateX(15px) translateY(-10px);
  }
  100% {
    transform: translateX(0px) translateY(0px);
  }
}

@keyframes channelSummaryGlow {
  0% {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 30px rgba(102, 126, 234, 0.3);
  }
  100% {
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 50px rgba(245, 87, 108, 0.4);
  }
}

@keyframes channelSummaryShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Complete Screen */
.complete-screen {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  color: white;
  margin-top: 20px;
}

.complete-screen.active {
  display: block;
  animation: fadeIn 0.8s ease;
}

.complete-content {
  max-width: 400px;
  margin: 0 auto;
}

.complete-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.complete-screen h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 700;
}

.complete-screen p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.new-analysis-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 0 auto;
}

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

/* Status Display */
.status-display {
  display: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  border-radius: 15px;
  color: white;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.status-display.active {
  display: block;
}

.status-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.status-icon.celebrate {
  animation: celebrate 0.6s ease;
}

@keyframes celebrate {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1.2) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.status-message {
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 500;
}

.status-detail {
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  margin-top: 15px;
}

.progress-fill {
  height: 100%;
  background: white;
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Results Section */
.results-section {
  display: none;
}

.results-section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
}

.results-summary {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
}

#new-search-btn {
  padding: 10px 20px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

#new-search-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Video Selection Section - UPDATED WITH CHECKBOX STYLING */
.video-selection {
  margin: 20px 0;
}

.selection-header {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.select-btn {
  padding: 8px 16px;
  background: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.select-btn:hover {
  background: #f0f0f0;
  border-color: #667eea;
}

.fetch-btn {
  padding: 10px 20px;
  background: #e0e0e0;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: not-allowed;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fetch-btn:not(:disabled) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
}

.fetch-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fetch-btn:disabled {
  opacity: 1;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-item {
  display: grid;
  grid-template-columns: 24px 200px 1fr;
  gap: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
  align-items: start;
  cursor: pointer;
}

.video-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-item.selected {
  background: #f0f4ff;
  border-color: #667eea;
}

.video-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: #667eea;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.video-thumbnail-wrapper {
  position: relative;
  width: 200px;
  height: 112px;
  flex-shrink: 0;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.video-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-channel {
  font-size: 13px;
  color: #606060;
  font-weight: 500;
}

.video-stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #606060;
  flex-wrap: wrap;
}

.video-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Hide video-selection when showing transcripts */
.video-selection.hidden {
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .video-item {
    grid-template-columns: 24px 1fr;
    gap: 10px;
  }
  
  .video-thumbnail-wrapper {
    grid-column: 2;
    width: 100%;
    height: 180px;
  }
  
  .video-info {
    grid-column: 2;
  }
  
  .selection-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .fetch-btn {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
}

/* Talking Points Section */
.talking-points-section {
  display: none;
  margin: 20px 0;
  animation: fadeIn 0.5s ease;
}

.talking-points-section.active {
  display: block;
}

.talking-points-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
  color: white;
}

.talking-points-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.talking-points-content {
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
  border: 1px solid #e8ecf0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 30px 35px;
  font-size: 15px;
  line-height: 1.8;
  color: #2d3436;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.talking-points-content::-webkit-scrollbar {
  width: 8px;
}

.talking-points-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.talking-points-content::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.talking-points-content ul,
.talking-points-content ol {
  margin: 10px 0;
  padding-left: 25px;
}

.talking-points-content li {
  margin: 8px 0;
}

.talking-points-loading {
  text-align: center;
  padding: 40px;
  color: #636e72;
}

.talking-points-loading .spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.talking-points-error {
  background: #fff5f5;
  border: 2px solid #ff6b6b;
  border-radius: 8px;
  padding: 20px;
  color: #c0392b;
  margin: 15px 0;
}

/* Results */
.results {
  margin-top: 30px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.results::-webkit-scrollbar {
  width: 8px;
}

.results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.results::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.result-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid #667eea;
  animation: slideInResult 0.6s ease;
  transform-origin: left center;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes slideInResult {
  from {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.result-item h3 {
  color: #2d3436;
  margin-bottom: 10px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #667eea;
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: normal;
}

.result-item a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
}

.result-item a:hover {
  text-decoration: underline;
}

.transcript-container {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.transcript-header strong {
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 5px;
}

.transcript-text {
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
  color: #636e72;
  font-size: 14px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.transcript-text::-webkit-scrollbar {
  width: 6px;
}

.transcript-text::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 3px;
}

.transcript-text::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

.copy-btn {
  padding: 6px 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #764ba2;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #00b894;
}

.no-transcript {
  color: #95a5a6;
  font-style: italic;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
  text-align: center;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.error-message {
  background: #ff6b6b;
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

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

.hidden {
  display: none !important;
}

/* ================================
   Transcript Selection Styling
   ================================ */

#transcript-selection {
  margin: 20px 0;
}

.transcript-item {
  display: grid;
  grid-template-columns: 24px 200px 1fr;
  gap: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
  align-items: start;
  cursor: pointer;
}

.transcript-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.transcript-item.selected {
  background: #f0f4ff;
  border-color: #667eea;
}

.transcript-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: #667eea;
}

/* Transcript box inside the card */
.transcript-container {
  background: transparent;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  padding: 10px;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.transcript-header strong {
  font-size: 14px;
  color: #2d3436;
}

.toggle-transcript-btn {
  padding: 4px 10px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
}

.toggle-transcript-btn:hover {
  background: #764ba2;
}

.transcript-text {
  max-height: 200px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
  color: #636e72;
}

.transcript-text.collapsed {
  max-height: 60px;
  overflow: hidden;
  position: relative;
}

.transcript-text.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, white, rgba(255,255,255,0));
}

/* Reuse existing selection-header / buttons for consistency */
#transcript-selection .selection-header {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

#transcript-selection .select-btn {
  padding: 8px 16px;
  background: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#transcript-selection .select-btn:hover {
  background: #f0f0f0;
  border-color: #667eea;
}

#transcript-selection .fetch-btn {
  padding: 10px 20px;
  background: #e0e0e0;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: not-allowed;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#transcript-selection .fetch-btn:not(:disabled) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
}

#transcript-selection .fetch-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#transcript-selection .fetch-btn:disabled {
  opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .transcript-item {
    grid-template-columns: 24px 1fr;
    gap: 10px;
  }
  
  .transcript-item .video-thumbnail-wrapper {
    grid-column: 2;
    width: 100%;
    height: 180px;
  }
  
  .transcript-item .video-info {
    grid-column: 2;
  }
  
  #transcript-selection .selection-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  #transcript-selection .fetch-btn {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
}

.status-log-entry {
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.85;
}

.transcript-meta {
  font-size: 13px;
  color: #636e72;
  margin-left: auto;
  margin-right: 10px;
  font-style: italic;
}

/* Transcript Selection Styles */
.transcript-item {
  display: grid;
  grid-template-columns: 24px 200px 1fr;
  gap: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
  align-items: start;
  margin-bottom: 12px;
}

.transcript-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.transcript-item.selected {
  background: #f0f4ff;
  border-color: #667eea;
}

.transcript-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: #667eea;
}

.transcript-meta {
  color: #667eea;
  font-size: 12px;
  font-weight: 500;
  margin-left: 10px;
}

.toggle-transcript-btn {
  padding: 4px 10px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: auto;
  transition: all 0.2s ease;
}

.toggle-transcript-btn:hover {
  background: #667eea;
  color: white;
}

.download-transcript-btn {
  padding: 4px 10px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: auto;
  transition: all 0.2s ease;
}

.download-transcript-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.transcript-text.collapsed {
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

.transcript-text.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, #f5f5f5);
}

#generate-talking-points-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

#generate-talking-points-btn:disabled {
  background: #e0e0e0;
  color: #666;
}

.talking-points-content {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}

.talking-points-content li {
  margin: 15px 0;
  padding: 0.75em 1em;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: background 0.2s ease;
  list-style:none;
}

.talking-points-content li:hover {
  background: #eef4ff;
}

.tp-order {
  font-weight: bold;
  color: #4a90e2;
  margin-right: 6px;
}

/* Modern Talking Points Display */
.talking-point-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 4px 0;
  margin: 0 8px;
  background: transparent;
  transition: all 0.2s ease;
}

.talking-point-item:hover {
  transform: translateY(-1px);
}

.talking-point-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
}

.talking-point-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #2d3436;
  margin-top: 4px;
}

/* Background */
.login-body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
}

/* Login container */
.login-container {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
}

.login-container label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.login-container input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 0.75rem;
  background: #2575fc;
  border: none;
  color: white;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.login-container button:hover {
  background: #1b5fd1;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============================= */
/* LOGOUT BUTTON                 */
/* ============================= */
.logout-btn {
  background: #ff4d4f;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  float: right; /* default right alignment */
  margin-left: auto;
}

.logout-btn:hover {
  background: #d9363e;
  transform: scale(1.05);
}

.logout-btn:active {
  transform: scale(0.95);
}

/* Place logout button top-right in tool selector */
.tool-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Align logout button in tool header (tool panel) */
.tool-header-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.checker-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checker-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.checker-box textarea {
  flex: 1;
  min-height: 250px;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: monospace;
  font-size: 0.95rem;
  resize: vertical;
}

#check-script-btn {
  background: #2575fc;
  color: white;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#check-script-btn:hover {
  background: #1b5fd1;
}

.checker-results {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* ================================
   ADMIN PANEL STYLING
   ================================ */

.admin-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

.admin-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px 40px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title h1 {
  color: #2d3436;
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: 600;
}

.admin-title p {
  color: #636e72;
  margin: 0;
  font-size: 14px;
}

.admin-logout-btn {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-logout-btn:hover {
  background: #d9363e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.admin-cards {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.admin-card {
  background: white;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.admin-card:hover:not(.disabled) {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: #667eea;
}

.admin-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f9fa;
}

.card-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  flex-shrink: 0;
}

.admin-card.disabled .card-icon {
  background: #adb5bd;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  margin: 0 0 5px 0;
  color: #2d3436;
  font-size: 18px;
  font-weight: 600;
}

.card-content p {
  margin: 0;
  color: #636e72;
  font-size: 14px;
  line-height: 1.4;
}

.card-arrow {
  font-size: 20px;
  color: #adb5bd;
  transition: all 0.3s ease;
}

.admin-card:hover:not(.disabled) .card-arrow {
  color: #667eea;
  transform: translateX(5px);
}

.coming-soon-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin Content Pages */
.admin-back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-back-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.admin-content {
  padding: 40px;
}

.admin-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f3f4;
}

.section-header h3 {
  color: #2d3436;
  margin: 0 0 5px 0;
  font-size: 20px;
  font-weight: 600;
}

.section-header p {
  color: #636e72;
  margin: 0;
  font-size: 14px;
}

.admin-form {
  margin: 0;
}

.form-row {
  display: flex;
  gap: 20px;
  align-items: end;
}

.input-group {
  flex: 1;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #2d3436;
  font-weight: 500;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.admin-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.admin-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.admin-btn.secondary {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #e0e0e0;
}

.admin-btn.secondary:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.user-search {
  margin-bottom: 20px;
}

.user-table, .logs-table {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
}

/* User Management Styles */
.users-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.user-count {
  font-size: 14px;
  color: #636e72;
  font-weight: 500;
}

.users-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: white;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.user-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-id {
  font-size: 16px;
  font-weight: 500;
  color: #2d3436;
}

.remove-user-btn {
  padding: 8px 10px;
  background: #ff4d4f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-user-btn:hover {
  background: #d9363e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.no-users {
  text-align: center;
  padding: 40px 20px;
  color: #636e72;
}

.no-users-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
  opacity: 0.5;
}

.no-users p {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 500;
}

.no-users small {
  font-size: 14px;
  opacity: 0.7;
}

.loading {
  text-align: center;
  color: #636e72;
  padding: 40px;
  font-style: italic;
}

.logs-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.search-filter {
  flex: 1;
}

.filter-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-container {
    margin: 10px;
    border-radius: 12px;
  }

  .admin-header {
    padding: 20px 25px;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .admin-content {
    padding: 25px;
  }

  .admin-section {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .logs-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls {
    justify-content: space-between;
  }

  .admin-cards {
    grid-template-columns: 1fr;
    padding: 25px;
  }
}

/* ================================
   ADMIN SETTINGS SPECIFIC STYLES
   ================================ */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prompt-textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  resize: vertical;
  transition: all 0.3s ease;
}

.prompt-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.status-item .status-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
}

.status-content {
  flex: 1;
}

.status-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.status-value {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value.default {
  background: #e9ecef;
  color: #495057;
}

.status-value.custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.masked-input {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.input-help {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
  display: block;
}

.input-help code {
  background: #f8f9fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-body {
  padding: 24px;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-note {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.preview-note p {
  margin: 4px 0;
  font-size: 14px;
}

.preview-note p:first-child {
  font-weight: 600;
  color: #333;
}

.preview-note p:last-child {
  color: #666;
}

.prompt-preview-textarea {
  width: 100%;
  flex: 1;
  min-height: 400px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  resize: none;
  background: #fafafa;
  color: #333;
  line-height: 1.5;
}

.prompt-preview-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .prompt-preview-textarea {
    min-height: 300px;
  }
}

/* Cache Management Styles */
.cache-stats-container {
  margin-bottom: 25px;
}

.cache-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  min-width: 120px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #495057;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.cache-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cache-info {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0d6efd;
}

.cache-info p {
  color: #495057;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.cache-info ul {
  margin: 0;
  padding-left: 20px;
}

.cache-info li {
  color: #6c757d;
  margin-bottom: 5px;
  font-size: 14px;
}

.admin-btn.danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
}

.admin-btn.danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
}

/* Cache Page Specific Styles */
.cache-maintenance {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.maintenance-info {
  flex: 1;
}

.maintenance-info h4 {
  color: #495057;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.maintenance-info p {
  color: #6c757d;
  margin: 0 0 15px 0;
  font-size: 14px;
}

.maintenance-info ul {
  margin: 0;
  padding-left: 20px;
}

.maintenance-info li {
  color: #6c757d;
  margin-bottom: 5px;
  font-size: 14px;
}

.maintenance-controls {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.number-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.number-input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.explanation-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.explanation-item h4 {
  color: #495057;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.explanation-item p {
  color: #6c757d;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Cache Video Management Styles */
.cache-video-search-container {
  margin-bottom: 25px;
}

.cache-search-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cache-search-input {
  flex: 1;
  min-width: 300px;
  padding: 12px;
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cache-search-input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.cache-video-results {
  margin-top: 20px;
}

.loading-message, .no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: #6c757d;
  font-size: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.cached-video-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 15px;
  padding: 15px;
  background: white;
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.cached-video-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cached-video-thumbnail-wrapper {
  position: relative;
  width: 180px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f3f4;
}

.cached-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cached-video-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.cached-video-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cached-video-title {
  font-weight: 600;
  color: #2d3436;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cached-video-channel {
  color: #636e72;
  font-size: 14px;
  font-weight: 500;
}

.cached-video-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #636e72;
}

.cached-video-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #74b9ff;
  margin-top: 5px;
}

.cached-video-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.remove-video-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.remove-video-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
}

.download-transcript-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-transcript-btn:hover {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  transform: translateY(-1px);
}

/* Pillars Analysis Styles */
.pillars-analysis-section {
  margin-top: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.pillars-header {
  text-align: center;
  margin-bottom: 25px;
}

.pillars-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: white;
}

.pillars-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.channel-summary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: channelSummaryGlow 4s ease-in-out infinite alternate;
}

.channel-summary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: channelSummaryShine 3s linear infinite;
  pointer-events: none;
}

.channel-summary h4 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.channel-summary .summary-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pillar-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.pillar-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.pillar-weight {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.pillar-subtopics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.subtopic-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}

.pillar-stats {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.top-keywords {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.top-keywords h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 18px;
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.keyword-tag {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bigram-tag {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.company-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-tag {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Network Graph Styles */
.network-graph-container {
  margin: 30px 0;
  padding: 0;
}

.network-graph-container h4 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.network-graph {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.network-graph svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Clean design overrides - reduced gradients */
.pillars-analysis-section {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.pillars-header {
  background: #f8fafc !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 20px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.pillars-header h3 {
  color: #1f2937 !important;
  margin: 0 !important;
  font-weight: 600 !important;
}

.pillars-header p {
  color: #6b7280 !important;
  margin: 8px 0 0 0 !important;
}

.channel-summary {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin: 20px !important;
}

.channel-summary h4 {
  color: #1f2937 !important;
  margin: 0 0 12px 0 !important;
  font-weight: 600 !important;
}

.summary-text {
  color: #4b5563 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.pillars-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 16px !important;
  padding: 20px !important;
}

.pillar-box {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
}

.pillar-box h4 {
  color: #1f2937 !important;
  margin: 0 0 12px 0 !important;
  font-weight: 600 !important;
}

.pillar-weight {
  color: #059669 !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}

.pillar-videos {
  color: #6b7280 !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
}

.analysis-section {
  margin: 20px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 16px !important;
}

.analysis-section h4 {
  color: #1f2937 !important;
  margin: 0 0 16px 0 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}

.keywords-list, .companies-list, .products-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.keyword-tag, .company-tag, .product-tag, .subtopic-tag {
  background: #f3f4f6 !important;
  color: #374151 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  border: 1px solid #d1d5db !important;
  font-weight: 500 !important;
}

.keyword-tag:hover, .company-tag:hover, .product-tag:hover {
  background: #e5e7eb !important;
  transform: none !important;
}

.pillar-subtopics {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.subtopic-tag {
  font-size: 12px !important;
  padding: 4px 8px !important;
}

/* Improved Channel Summary Styling */
.channel-summary .summary-text {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #374151 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  text-align: left !important;
  letter-spacing: 0.01em !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.channel-summary h4 {
  margin-bottom: 12px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

.channel-summary {
  margin-bottom: 24px !important;
}

/* Video Ideas Styling */
.generate-ideas-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-top: 12px !important;
}

.generate-ideas-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.generate-ideas-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.video-ideas-container {
  margin-top: 16px !important;
}

.video-ideas-header {
  margin-bottom: 16px !important;
}

.video-ideas-header h5 {
  margin: 0 0 4px 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

.video-ideas-header p {
  margin: 0 !important;
  font-size: 14px !important;
  color: #6b7280 !important;
}

.video-idea {
  border-left: 4px solid #667eea !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.idea-badge {
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.seed-info {
  font-size: 12px !important;
  color: #7c3aed !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

.watch-btn {
  background: #ef4444 !important;
  color: white !important;
  text-decoration: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.3s ease !important;
}

.watch-btn:hover {
  background: #dc2626 !important;
  transform: translateY(-1px) !important;
}

/* Video metadata styling */
.video-metadata {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-size: 12px !important;
  color: #6b7280 !important;
}

.video-channel {
  font-weight: 500 !important;
  color: #374151 !important;
}

.video-date {
  color: #9ca3af !important;
}

/* Video actions within video info */
.video-info .video-actions {
  margin-top: 8px !important;
}

/* New video ideas styling */
.video-ideas-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}

.video-idea-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border: 1px solid #e5e7eb !important;
  border-left: 4px solid #667eea !important;
  border-radius: 12px !important;
  padding: 20px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.video-idea-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15) !important;
  border-left-color: #4f46e5 !important;
}

.idea-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.idea-meta {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.idea-category {
  background: #667eea !important;
  color: white !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.idea-difficulty {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.difficulty-beginner {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.difficulty-intermediate {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.difficulty-advanced {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.idea-content {
  margin-bottom: 16px !important;
}

.idea-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1.4 !important;
  margin: 0 0 8px 0 !important;
}

.idea-seed {
  font-size: 13px !important;
  color: #7c3aed !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

.idea-actions {
  display: flex !important;
  gap: 8px !important;
}

.copy-title-btn {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
}

.copy-title-btn:hover {
  background: #e5e7eb !important;
  border-color: #9ca3af !important;
  transform: translateY(-1px) !important;
}

.ideas-footer {
  margin-top: 24px !important;
  padding: 16px !important;
  background: #f0f4ff !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 8px !important;
  text-align: center !important;
}

.ideas-footer p {
  margin: 0 !important;
  font-size: 14px !important;
  color: #4338ca !important;
}

/* Mobile responsiveness for video ideas */
@media (max-width: 768px) {
  .video-ideas-list {
    grid-template-columns: 1fr !important;
  }

  .video-idea-card {
    padding: 16px !important;
  }

  .idea-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

/* Additional styling for transformed ideas */
.original-inspiration {
  margin-top: 8px !important;
  padding: 8px !important;
  background: #f8faff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

.inspiration-label {
  font-weight: 600 !important;
  color: #4338ca !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.original-title {
  color: #6b7280 !important;
  font-style: italic !important;
  line-height: 1.3 !important;
}

.transformation-note {
  margin-top: 6px !important;
  font-size: 11px !important;
}

.transformation-label {
  font-weight: 600 !important;
  color: #059669 !important;
}

.transformation-text {
  color: #6b7280 !important;
  font-style: italic !important;
}

.compare-btn {
  background: #e0e7ff !important;
  border: 1px solid #c7d2fe !important;
  color: #4338ca !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
}

.compare-btn:hover {
  background: #c7d2fe !important;
  border-color: #a5b4fc !important;
  transform: translateY(-1px) !important;
}
