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

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  min-height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
}

.dashboard {
  min-height: 100vh;
  position: relative;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.logo i {
  font-size: 1.5rem;
  color: #8b5cf6;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.credits-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.credits-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.1);
}

.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Main Content */
.main-content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Create Section */
.create-section {
  margin-bottom: 4rem;
}

.create-header {
  text-align: center;
  margin-bottom: 3rem;
}

.create-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.create-header p {
  font-size: 1.125rem;
  color: #d1d5db;
  font-weight: 400;
}

/* Generation Options */
.generation-options {
  display: flex;              /* instead of grid */
  justify-content: center;    /* center them horizontally */
  align-items: stretch;       /* make equal height */
  gap: 1.3rem;                /* spacing between cards */
  flex-wrap: nowrap;          /* ✅ prevents wrapping */
  overflow-x: auto;           /* ✅ adds scroll if too many */
  padding-bottom: 1rem;       /* space for scroll bar */
}

 

.option-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 250px;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.option-card:hover::before,
.option-card.active::before {
  opacity: 1;
}

/* Zoom-out on hover/active */
.option-card:hover,
.option-card.active {
  transform: scale(0.98) translateY(2px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 15px 35px rgba(139, 92, 246, 0.15);
}

.option-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.option-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.option-card p {
  color: #d1d5db;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

/* Input Section */
.input-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.input-container {
  margin-bottom: 1.5rem;
}

.input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

.topic-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  padding-right: 4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.topic-input::placeholder {
  color: #9ca3af;
}

.topic-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.voice-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.voice-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.voice-btn.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse 1.5s infinite;
}

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

.web-search-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-switch label:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + label {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.toggle-switch input:checked + label:before {
  transform: translateX(20px);
}

.generation-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.control-group {
  display: flex;
  gap: 1rem;
}

.custom-dropdown {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  min-width: 130px;
}

.custom-dropdown .selected {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,0.1);
  padding: .75rem 1rem;
  border-radius: 8px;
  transition: all .2s ease;
  color: #fff;
  position: relative;
}

.custom-dropdown .selected .chevron {
  margin-left: auto;
  transition: transform .3s ease;
}

.custom-dropdown .options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 50;
  display: none;
  max-height: 220px;
  overflow-y: auto;
}

.custom-dropdown .options li {
  padding: 8px 14px;
  transition: background .2s ease;
  cursor: pointer;
  color: #e5e7eb;
}

.custom-dropdown .options li:hover,
.custom-dropdown .options li.active {
  background: rgba(255,255,255,0.15);
}

.custom-dropdown.open .options {
  display: block;
}

.custom-dropdown.open .selected .chevron {
  transform: rotate(180deg);
}

.generate-btn {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139,92,246,0.3);
}

.character-count {
  text-align: right;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Recent Section */
.recent-section {
  margin-top: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: #d1d5db;
  font-size: 1rem;
}

.presentations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.presentation-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.presentation-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(139, 92, 246, 0.3);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.presentation-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.slides-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.generate-similar-btn {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.generate-similar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Slide preview (on hover) */
.slide-preview {
  margin-top: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  font-size: 0.85rem;
}

.slide-preview .preview-title {
  font-weight: 600;
  margin-bottom: 6px;
  display: none;
}

.presentation-card:hover .slide-preview {
  max-height: 240px;
  opacity: 1;
}

.preview-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.preview-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.preview-list li:last-child {
  border-bottom: none;
}

/* Example prompts */
.example-section {
  padding: 2rem;
  background-color: #000000;
  border-radius: 12px;
  margin: 2rem 0;
}

.example-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.shuffle-btn {
  background-color: #a855f7;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.shuffle-btn:hover {
  background-color: #0056b3;
}

.examples-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.example-card {
  background: rgb(10, 1, 34);
  padding: 1rem;
  border-left: 5px solid #4a90e2;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  flex: 1;
  min-width: 220px;
  position: relative;
}

.example-card h3 {
  margin-top: 0;
}

.add-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.add-btn:hover {
  background-color: #a855f7;
}

/* Links input (custom links mode) */
.link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.link-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.add-link-btn {
  background: linear-gradient(135deg,#8b5cf6,#a855f7);
  border: none;
  color: rgb(247, 7, 7);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.add-link-btn:hover {
  transform: scale(1.05);
}

/* EXAMPLE CARD */

.example-card-top { 
  display:flex; 
  justify-content:space-between; 
  align-items:flex-start; 
  gap:1rem; 
}

.example-text { 
  flex:1; 
}

.use-prompt-btn {
      
  background-color: #01521b ;
}



/* Footer */
.footer {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.footer-right a {
  color: #d1d5db;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s ease;
}

.footer-right a:hover {
  color: #fff;
}

.footer-logo {
  height: 40px;
}

/* Responsive */
@media (max-width: 992px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-left, .footer-center, .footer-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .main-content {
    padding: 1rem;
  }

  .create-header h1 {
    font-size: 2rem;
  }

  .generation-options {
    grid-template-columns: 1fr;
  }

  .generation-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .control-group {
    justify-content: center;
  }

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

  .user-profile span {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-right {
    gap: 0.75rem;
  }

  .credits-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .create-header h1 {
    font-size: 1.75rem;
  }

  .create-header p {
    font-size: 1rem;
  }

  .option-card {
    padding: 1.5rem;
  }

  .input-section {
    padding: 1.5rem;
  }
}
