@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

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

body {
  font-family: "Inter", sans-serif;
  /* min-height: 100vh; */
  overflow-x: hidden;
  background: #000000;
  color: #ffffff;
  position: relative;
}

/* Grid Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgb(255, 255, 255) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255, 255, 255) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: -1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  /* background: rgba(0, 0, 0, 0.9); */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo h1 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

/* Header Button Container */
.header-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Search Input */
.search-input {
  width: 300px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.575rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

/* Add Note Button */
.add-note-btn {
  background: oklch(62.3% 0.214 259.815);
  color: white;
  border: none;
  padding: 0.55rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.575rem;
}
.start-ai-btn {
  background: linear-gradient(135deg, #4285f4, #a142f4, #ea4335);
  color: white;
  border: none;
  padding: 0.55rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.575rem;
}
.add-note-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Stop AI Button */
#disableAI {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

#disableAI:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Notes Canvas */
.notes-canvas {
  margin-top: 60px;
  position: relative;
}

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

/* Sticky Note Cards */
.note-card {
  background: #feff9c;
  border: none;
  border-radius: 0;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(-1deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  min-height: 200px;
  color: #333333;
}

.note-card:nth-child(even) {
  background: #fff740;
  transform: rotate(1deg);
}

.note-card:nth-child(3n) {
  background: #feff9c;
  transform: rotate(-0.5deg);
}

.note-card:nth-child(4n) {
  background: #fff740;
  transform: rotate(0.8deg);
}

.note-card:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Sticky note tape effect */
.note-card::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.note-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333333;
  margin: 0;
  line-height: 1.3;
}

.note-category {
  background: rgba(0, 0, 0, 0.1);
  color: #333333;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 500;
}

.note-content {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #444444;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #666666;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
}

.modal-large {
  max-width: 700px;
  max-height: 95vh;
}

.view-note-content {
  margin-bottom: 1.5rem;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.note-category-display {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 15px;
  font-weight: 500;
}

.note-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.note-content-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  color: #ffffff;
  line-height: 1.6;
  font-size: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 1rem;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.view-note-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.view-note-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* Delete Button on Note Cards */
.note-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.note-card:hover .note-delete-btn {
  opacity: 1;
}

.note-delete-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Summary indicator on cards */
.note-summary-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(139, 92, 246, 0.9);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Responsive adjustments for view modal */
@media (max-width: 768px) {
  .modal-large {
    max-width: 95%;
    margin: 1rem;
  }
  
  .view-note-actions {
    flex-direction: column;
  }
  
  .view-note-actions .btn {
    width: 100%;
  }
  
  .note-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
  margin-bottom: 1rem;
  stroke: rgba(255, 255, 255, 0.5);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

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

.modal-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.close-btn:hover {
  opacity: 1;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.875rem;
}
.form-select {
  background-color: rgb(62, 61, 61);
  color: white;
  padding-right: 10px;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

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

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-primary {
  background: oklch(62.3% 0.214 259.815);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.btn-ai {
  background: linear-gradient(135deg, #4285f4, #a142f4, #ea4335);
  color: white;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* Summary Display */
.note-summary {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(82, 8, 255, 0.3);
  border-radius: 8px;
}

.summary-content h4 {
  color: #8b5cf6;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.summary-content p {
  color: rgb(255, 255, 255);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

/* Bottom Search Bar */
.search-bar-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  transition: all 0.3s ease;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(139, 92, 246, 0.2);
  min-width: 400px;
  max-width: 600px;
  gap: 1rem;
  transition: all 0.3s ease;
}

.search-bar:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 
              0 0 30px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.search-bar:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 
              0 0 40px rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}

.search-icon {
  color: rgba(139, 92, 246, 0.8);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-input-bottom {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  padding: 0.5rem 0;
  font-weight: 400;
}

.search-input-bottom::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.search-status-indicator {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-status-indicator.active {
  opacity: 1;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

/* Search Results Status at top of notes */
.search-status {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 5rem;
  margin-right: 2rem;
  margin-left: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.clear-search-btn {
  background: none;
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #8b5cf6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  margin-left: 0.75rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.clear-search-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  transform: translateY(-1px);
}

/* Highlight search terms */
mark {
  background: rgba(139, 92, 246, 0.4);
  color: #ffffff;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Update Ask AI button position to avoid overlap */
.ask-ai-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  transition: all 0.3s ease;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-bar {
    min-width: 300px;
    max-width: calc(100vw - 40px);
    padding: 0.65rem 1.25rem;
  }
  
  .search-input-bottom {
    font-size: 0.9rem;
  }
  
  .search-bar-container {
    bottom: 20px;
  }
  
  .ask-ai-btn {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .search-bar {
    min-width: 250px;
    padding: 0.6rem 1rem;
  }
  
  .search-input-bottom {
    font-size: 0.85rem;
  }
  
  .search-input-bottom::placeholder {
    font-size: 0.85rem;
  }
}

/* Remove old search input styles that are no longer needed */

.ask-ai-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.6);
}

/* AI Sidebar */
.ai-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transition: right 0.3s ease;
  z-index: 45;
  display: flex;
  flex-direction: column;
}

.ai-sidebar.open {
  right: 0;
}

.ai-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-sidebar-title {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  padding: 0.75rem;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  animation: slideIn 0.3s ease-out;
}

.chat-message.user {
  background: rgba(139, 92, 246, 0.8);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message.ai {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* .typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
} */

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

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.ai-input-area {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-input-container {
  display: flex;
  gap: 0.5rem;
}

.ai-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.875rem;
}

.ai-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.ai-input:focus {
  outline: none;
  border-color: #8b5cf6;
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.send-btn:hover {
  transform: scale(1.1);
}

.ai-glow {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

/* Search Results Highlight */
.search-result {
  border: 2px solid #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .search-input {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .ai-sidebar {
    width: 100%;
    right: -100%;
  }

  .header {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .header-btn {
    justify-content: center;
    flex-wrap: wrap;
  }

  .search-input {
    width: 100%;
    order: -1;
  }

  .logo {
    justify-content: center;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .ask-ai-btn {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  .notes-canvas {
    margin-top: 140px;
  }
}

@media (max-width: 480px) {
  .header-btn {
    flex-direction: column;
    width: 100%;
  }

  .add-note-btn {
    width: 100%;
    justify-content: center;
  }

  .notes-canvas {
    margin-top: 180px;
  }
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

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

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

/* Notification */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 0.8rem 0.8rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Hidden class */
.hidden {
  display: none;
}

/* Loading animation for AI chat */
.chat-message.loading {
  opacity: 0.8;
}

.loading-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loading-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.dots {
  display: flex;
  gap: 0.25rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.8);
  animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Enhanced chat message formatting */
.chat-message p {
  line-height: 1.6;
  margin: 0;
}

.chat-list-item {
  margin: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.chat-list-item::before {
  content: counter(chat-counter);
  counter-increment: chat-counter;
  position: absolute;
  left: 0;
  font-weight: 600;
  color: rgba(139, 92, 246, 0.8);
}

.chat-bullet {
  margin: 0.25rem 0;
  padding-left: 0.5rem;
}

.chat-message.ai {
  counter-reset: chat-counter;
}

/* Enhanced AI chat styling */
.chat-message strong {
  color: rgba(139, 92, 246, 0.9);
  font-weight: 600;
}

.chat-message em {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* FIXED: Add missing search rank styles */
.search-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(139, 92, 246, 0.9);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 3;
}

/* FIXED: Initially hide search bar */
.search-bar-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  transition: all 0.3s ease;
}
