@font-face {
  font-family: "Overused Grotesk";
  src: url("https://raw.githubusercontent.com/RandomMaerks/Overused-Grotesk/master/fonts/variable/OverusedGroteskRoman-VF.ttf")
    format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

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

body {
  font-family: "Overused Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #111827;
  padding-top: 73px;
  min-width: 320px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  min-width: 320px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827;
  white-space: nowrap;
  text-decoration: none;
}

.logo:hover {
  color: #111827;
  text-decoration: none;
}

.beta-badge {
  background: #3b82f6;
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.nav a:hover {
  color: #141414;
  border-color: #9ca3af;
  text-decoration: none;
}

.nav a:hover {
  color: #141414;
  border-color: #9ca3af;
  text-decoration: none;
}

.login-btn:hover {
  color: white;
}

/* Donate button styling */
.nav a.donate-btn {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
}

.nav a.login-btn {
  background: #000000;
  color: white;
  border-color: #000000;
}
.nav a.donate-btn:hover {
  background: #d97706;
  border-color: #d97706;
  color: white;
}

.nav a.login-btn:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: white;
}

/* User dropdown */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #111827;
  color: white;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.875rem;
}

.user-menu-toggle:hover {
  background: #374151;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 50;
  display: none;
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.user-menu-dropdown a:last-child {
  border-bottom: none;
}

.user-menu-dropdown a:hover {
  background: #f9fafb;
  color: #111827;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 25;
  display: none;
}

.mobile-nav-overlay.show {
  display: block;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 30;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-nav-menu.show {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links a {
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.mobile-nav-links a:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
}

/* Main Layout */
.main-layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 73px);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 73px;
  left: 0;
  width: 320px;
  background: white;
  border-right: 1px solid #e5e7eb;
  padding: 1.5rem;
  height: calc(100vh - 73px);
  overflow-y: auto;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-toggle {
  position: fixed;
  top: 90px;
  left: 10px;
  z-index: 24;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
}

.sidebar-toggle.sidebar-collapsed {
  left: 10px;
}

.sidebar-toggle:hover {
  background: #f9fafb;
}

.sidebar-content {
  flex: 1;
}

.sidebar-title {
  color: #9ca3af;
  font-size: 1.5125rem;
  line-height: 1.4;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  cursor: pointer;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
}

.chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.chevron.rotated {
  transform: rotate(180deg);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.font-name-link {
  color: inherit;
  text-decoration: none;
  transition: none;
}

.font-name-link:hover {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  color: #111827;
}

.filter-content {
  padding-top: 0.5rem;
  display: none;
}

.filter-content.open {
  display: block;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.filter-btn:hover {
  border-color: #9ca3af;
}

.filter-btn.active {
  background: #111827;
  color: white;
  border-color: #111827;
}

/* Search and Reset */
.search-section {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.reset-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: inherit;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #111827;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s;
}

.social-icon:hover {
  color: #111827;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
}

/* Main Content For only index.html */
.main-content-index {
  flex: 1;
  padding: 1.5rem;
  margin-left: 320px;
  min-width: 0;
  width: calc(100% - 320px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.main-content-index.sidebar-collapsed {
  margin-left: 0;
  width: 100%;
}

.content-header {
  margin-bottom: 1.5rem;
}

.sort-section {
  margin-bottom: 1.5rem;
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  min-width: 200px;
  font-family: inherit;
}

/* Font Grid */
.font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  position: relative;
  overflow: visible;
}

.font-card {
  background: white;
  border-radius: 0.5rem;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  min-width: 0;
  position: relative;
}

.font-card:hover {
  transform: translateY(-2px);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.font-preview {
  aspect-ratio: 4 / 3;
  background: #d1d5db;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  border-radius: 0.5rem 0.5rem 0 0;
}

.paid-badge,
.free-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  color: black;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  background: #ffffff;
}

.open-new-tab {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  flex-shrink: 0;
}

.open-new-tab:hover {
  background: white;
}

.font-info {
  padding: 1rem;
}

.font-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.font-foundry {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.font-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.action-btn:hover {
  background: #f3f4f6;
}

.action-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.action-btn.favorite.active .action-icon {
  color: #ef4444;
  fill: #ef4444;
}

/* AI Assistant */
.ai-assistant {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 30;
}

.ai-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.ai-toggle:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.ai-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.ai-modal.show {
  display: flex;
}

.ai-modal-content {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

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

.ai-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.ai-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
}

.ai-input-group {
  margin-bottom: 1rem;
}

.ai-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.ai-submit {
  background: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s;
}

.ai-submit:hover {
  background: #2563eb;
}

.ai-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.ai-results {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ai-keyword {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-keyword:hover {
  background: #e5e7eb;
}

.ai-keyword.selected {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.ai-apply {
  background: #111827;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: inherit;
}

.ai-apply:hover {
  background: #374151;
}

/* Forms */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
  border-color: #ef4444;
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  font-family: inherit;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  color: white;
  text-decoration: none;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  text-decoration: none;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #9ca3af;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-state-description,
.after-loading-fonts-message-description {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

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

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .header {
    padding: 0.75rem 1rem;
  }

  .logo-container {
    position: static;
    transform: none;
  }

  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    z-index: 23;
    transition: left 0.3s ease;
  }

  .sidebar.show {
    left: 0;
  }

  .main-content-index {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }

  .font-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .ai-assistant {
    bottom: 1rem;
    right: 1rem;
  }

  .ai-toggle {
    width: 50px;
    height: 50px;
  }

  .form-container {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  /* Mobile sidebar overlay */
  .mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
    display: none;
  }

  .mobile-sidebar-overlay.show {
    display: block;
  }
}

@media (max-width: 480px) {
  .font-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    /* grid-template-columns: 1fr; */
  }

  .search-section {
    /* flex-direction: column; */
  }

  .reset-btn {
    align-self: flex-start;
  }
}

/* Admin styles */
.admin-header {
  background: #111827;
  color: white;
  padding: 1rem 1.5rem;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-nav a {
  color: #d1d5db;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: #374151;
  color: white;
  text-decoration: none;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.table-container {
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.table th {
  background: #f9fafb;
  font-weight: 500;
  color: #374151;
}

.table tr:hover {
  background: #f9fafb;
}

.table .btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #f9fafb;
  text-decoration: none;
}

.pagination .current {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Keyword filter chips */
.keyword-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.keyword-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.keyword-chip-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
  background-color: #3b82f6;
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.options-container {
  position: relative;
}

.options-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 120px;
  display: none;
}

.options-menu.show {
  display: block;
}

.option-item {
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  transition: background-color 0.2s;
}

.option-item:hover {
  background: #f3f4f6;
}

.report-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
}

.report-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000000;
  min-width: 300px;
  max-width: 90vw;
}

.report-form h3 {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1.125rem;
}

.report-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.report-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.report-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
}

.report-btn.primary {
  background: #111827;
  color: white;
  border-color: #111827;
}

.report-btn.primary:hover {
  background: #374151;
}

.report-btn.secondary {
  background: white;
  color: #374151;
}

.report-btn.secondary:hover {
  background: #f3f4f6;
}

.dropdown-menu button {
  /* border: none; */
}

.pagination-btn {
  color: #2f2f2f;
  text-decoration: none;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border: 1px solid #9ca3af;
  background: white;
  border-radius: 9999px;
  font-size: 0.999rem;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  margin-top: 20px;
}

.collection-menu {
  position: absolute;
  top: 100%; /* Place directly below the icon */
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 160px;
  display: none;
}

.collection-menu.show {
  display: block;
  z-index: 9999 !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(111 111 111 / 50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
}
.modal-content h3 {
  margin-top: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.collections-form h3 {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1.125rem;
}

.collections-input {
  width: 280px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
}

.collections-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.collections-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
}

.collections-btn.primary {
  background: #111827;
  color: white;
  border-color: #111827;
}

.collections-btn.primary:hover {
  background: #374151;
}

.collections-btn.secondary {
  background: white;
  color: #374151;
}

.collections-btn.secondary:hover {
  background: #f3f4f6;
}
.collections-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000000;
  min-width: 300px;
  max-width: 90vw;
}

.share-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.share-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 180px;
}

.share-dropdown button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
}

.share-dropdown button:hover {
  background-color: #f3f4f6;
}
