/**
 * Modern CSS untuk KBBI dengan Dark Mode
 * 
 * Fitur:
 * - Dark Mode toggle
 * - Modern UI components
 * - Responsive design
 * - Smooth animations
 * - CSS Grid & Flexbox
 */

:root {
  /* Light theme colors */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-color: #334155;
  --border-hover: #475569;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

/* Dark mode untuk komponen KBBI */
[data-theme="dark"] .xwell {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .xwell h1 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .xwell p {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .well {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .well h3 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .well p {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .well ul {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .well li {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .well a {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .well a:hover {
  color: var(--primary-hover) !important;
}

/* Dark mode untuk arti kata */
[data-theme="dark"] .arti {
  color: var(--text-primary) !important;
  background-color: var(--bg-secondary) !important;
  padding: 1rem !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color) !important;
  margin-bottom: 1rem !important;
}

/* Dark mode untuk symbol bantuan */
[data-theme="dark"] .symbol {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  padding: 1rem !important;
  border-radius: var(--radius-md) !important;
  margin: 1rem 0 !important;
}

[data-theme="dark"] .symbol b {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .symbol i {
  color: var(--primary-color) !important;
}

/* Dark mode untuk side panels */
[data-theme="dark"] .col-sm-6 {
  background-color: transparent !important;
}

[data-theme="dark"] .col-sm-6 .well {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .col-sm-6 .well h4 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .col-sm-6 .well a {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .col-sm-6 .well a:hover {
  color: var(--primary-hover) !important;
}

/* Dark mode untuk container utama */
[data-theme="dark"] .container {
  background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .row {
  background-color: transparent !important;
}

/* Dark mode untuk text yang belum di-styling */
[data-theme="dark"] p {
  color: var(--text-primary) !important;
}

[data-theme="dark"] a {
  color: var(--primary-color) !important;
}

[data-theme="dark"] a:hover {
  color: var(--primary-hover) !important;
}

/* Dark mode untuk Bootstrap components */
[data-theme="dark"] .card {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card-header {
  background-color: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card-body {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card-subtitle {
  color: var(--text-secondary) !important;
}

/* Dark mode untuk alert */
[data-theme="dark"] .alert {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .alert-info {
  background-color: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #93c5fd !important;
}

[data-theme="dark"] .alert-success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}

[data-theme="dark"] .alert-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] .alert-warning {
  background-color: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #fcd34d !important;
}

/* Dark mode untuk form elements */
[data-theme="dark"] .form-control {
  background-color: var(--bg-tertiary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--bg-tertiary) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25) !important;
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--text-muted) !important;
}

/* Dark mode untuk buttons */
[data-theme="dark"] .btn {
  border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .btn-default {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .btn-default:hover {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

/* Dark mode untuk navbar */
[data-theme="dark"] .navbar {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .navbar-default {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .navbar-nav > li > a {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar-nav > li > a:hover {
  color: var(--primary-color) !important;
  background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .navbar-nav > .active > a {
  color: var(--primary-color) !important;
  background-color: var(--bg-tertiary) !important;
}

/* Logo navbar styling */
.navbar-brand img {
  height: 40px;
  width: auto;
  max-width: 120px;
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Dark mode untuk logo */
[data-theme="dark"] .navbar-brand img {
  filter: brightness(1.1);
}

/* Dark mode untuk input groups */
[data-theme="dark"] .input-group .form-control {
  background-color: var(--bg-tertiary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .input-group-btn .btn {
  background-color: var(--bg-tertiary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .input-group-btn .btn:hover {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

/* Header Search Styling */
.navbar-form .search-form {
  position: relative;
}

.navbar-form .search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.navbar-form .search-suggestions.show {
  display: block;
}

.navbar-form .search-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
  color: var(--text-primary);
}

.navbar-form .search-suggestion-item:hover {
  background-color: var(--bg-tertiary);
}

.navbar-form .search-suggestion-item:last-child {
  border-bottom: none;
}

.navbar-form .search-suggestion-highlight {
  font-weight: bold;
  color: var(--primary-color);
}

/* Voice search button styling */
.navbar-form .voice-search-btn {
  border-right: 1px solid var(--border-color);
}

.navbar-form .voice-search-btn:hover {
  background-color: var(--bg-tertiary);
}

.navbar-form .voice-search-btn.listening {
  background-color: var(--primary-color);
  color: white;
  animation: pulse 1.5s infinite;
}

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

/* Dark mode untuk Bootstrap panels */
[data-theme="dark"] .panel {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

/* Dark mode untuk sidebar widgets */
[data-theme="dark"] .sidebar-widgets .panel {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .sidebar-widgets .panel-heading {
  background-color: var(--bg-tertiary) !important;
  border-bottom-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .sidebar-widgets .panel-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .sidebar-widgets .panel-body {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .panel-primary {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .panel-heading {
  background-color: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .panel-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .panel-body {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .panel-body a {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .panel-body a:hover {
  color: var(--primary-hover) !important;
}

[data-theme="dark"] .list-kata {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .list-kata a {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .list-kata a:hover {
  color: var(--primary-hover) !important;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  margin: 0;
  padding: 0;
}

/* Dark mode toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
  transition: fill var(--transition-fast);
}

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--primary-hover);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

/* Search container */
.search-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-form {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.voice-search-btn {
  padding: 1rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-search-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.voice-search-btn.recording {
  background: var(--error-color);
  animation: pulse 1s infinite;
}

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

/* Search suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.show {
  display: block;
  animation: slideDown var(--transition-fast);
}

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

.suggestion-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.suggestion-item:hover {
  background: var(--bg-secondary);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-word {
  font-weight: 600;
  color: var(--text-primary);
}

.suggestion-meaning {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.suggestion-type {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

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

/* Cards */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}

/* Word definitions */
.word-definition {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.word-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.word-pronunciation {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.word-meaning {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.word-example {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* Grid layout */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Loading states */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-btn,
  .voice-search-btn {
    width: 100%;
    justify-content: center;
  }
  
  .theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin: 1rem auto 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem 0.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .word-definition {
    padding: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* AI Content Styles */
.ai-content-section {
  margin: 2rem 0;
}

.ai-loading {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.ai-section {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

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

.contoh-kalimat-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: contoh-counter;
}

.contoh-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 1rem;
  gap: 12px;
}

.contoh-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.contoh-item:last-child {
  margin-bottom: 0;
}

.contoh-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px; /* Align with first line of text */
}

.contoh-text {
  flex: 1;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
  padding: 0;
  padding-top: 2px; /* Match number alignment */
}

.contoh-source {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

.artikel-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.artikel-content {
  padding: 1.5rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.artikel-content h2,
.artikel-content h3,
.artikel-content h4 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.artikel-content h2:first-child,
.artikel-content h3:first-child,
.artikel-content h4:first-child {
  margin-top: 0;
}

.artikel-content p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.artikel-content ul,
.artikel-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.artikel-content li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.artikel-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.artikel-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.artikel-content em {
  color: var(--text-secondary);
  font-style: italic;
}

.artikel-meta {
  padding: 1rem 1.5rem;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

/* AI Content Responsive */
@media (max-width: 768px) {
  .contoh-item {
    padding: 0.75rem;
  }
  
  .contoh-number {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 0.8rem;
    margin-right: 10px;
  }
  
  .contoh-text {
    width: calc(100% - 34px);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .artikel-content {
    padding: 1rem;
  }
  
  .artikel-meta {
    padding: 1rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .contoh-item {
    padding: 0.5rem;
  }
  
  .contoh-number {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.75rem;
    margin-right: 8px;
  }
  
  .contoh-text {
    width: calc(100% - 30px);
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Modern Footer Styling */
.footer-modern {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding: 3rem 0 1rem;
    color: var(--text-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

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

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
}

.footer-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copyright p:first-child {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    line-height: 1.4;
}

.footer-debug {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.debug-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Dark mode untuk footer */
[data-theme="dark"] .footer-modern {
    background-color: var(--bg-secondary) !important;
    border-top-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer-logo-text {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .footer-description {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .social-link {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

[data-theme="dark"] .footer-title {
    color: var(--text-primary) !important;
    border-bottom-color: var(--primary-color) !important;
}

[data-theme="dark"] .footer-list a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-list a:hover {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .footer-copyright p:first-child {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer-copyright p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-disclaimer {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .debug-item {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 2rem 0 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-debug {
        justify-content: center;
    }
}

/* AI Loading States */
.ai-loading-state {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

/* Page Hierarchy and Spacing */
.container {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* H1 - Page Title */
.xwell h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.2;
}

/* H2 - Word Definition */
.xwell h2.arti {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

/* H3 - Section Headers */
.xwell h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--text-primary);
  line-height: 1.3;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* H4 - Subsection Headers */
.xwell h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Paragraph Spacing */
.xwell p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Xwell Spacing */
.xwell {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Article Content Styling */
.artikel-content h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.artikel-body {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Reset margins for article content */
.artikel-body h1,
.artikel-body h2,
.artikel-body h3,
.artikel-body h4,
.artikel-body h5,
.artikel-body h6 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.artikel-body h1 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.artikel-body h2 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.artikel-body h3 {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

.artikel-body h4 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.artikel-body h5,
.artikel-body h6 {
  font-size: 1rem;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

.artikel-body p {
  margin-top: 0 !important;
  margin-bottom: 0.8rem !important;
  line-height: 1.5;
}

.artikel-body p:first-child {
  margin-top: 0;
}

.artikel-body p:last-child {
  margin-bottom: 0;
}

.artikel-body b,
.artikel-body strong {
  font-weight: bold;
  color: var(--text-primary);
}

.artikel-body i,
.artikel-body em {
  font-style: italic;
  color: var(--text-secondary);
}

.artikel-body ul,
.artikel-body ol {
  margin-top: 0;
  margin-bottom: 0.8rem;
  margin-left: 1.5rem;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.artikel-body li {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

.artikel-body li:first-child {
  margin-top: 0;
  padding-top: 0;
}

.artikel-body li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.artikel-body blockquote {
  margin: 1.2rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--primary-color);
  background: var(--bg-tertiary);
  font-style: italic;
  color: var(--text-secondary);
}

.artikel-body hr {
  margin: 1.2rem 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.artikel-body br {
  line-height: 1.6;
}

/* Contoh Kalimat Styling */
.contoh-list {
  margin: 0;
  padding: 0;
}

.contoh-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contoh-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contoh-number {
  font-weight: 600;
  color: var(--primary-color);
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  min-width: 1.5rem;
  font-size: 1rem; /* Match word definition font size */
}

.contoh-text {
  flex: 1;
  line-height: 1.7; /* Match word definition line height */
  color: var(--text-primary);
  font-size: 1rem; /* Match word definition font size */
}

/* Similar Words Styling */
.xwell p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.xwell p a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Dark mode untuk spacing dan hierarchy */
[data-theme="dark"] .xwell {
  background-color: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .xwell h1 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .xwell h2.arti {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .xwell h3 {
  color: var(--text-primary) !important;
  border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .xwell h4 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .xwell p {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .contoh-item {
  border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .contoh-number {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .contoh-text {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .xwell p a {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .xwell p a:hover {
  color: var(--primary-hover) !important;
}

/* Dark mode untuk artikel */
[data-theme="dark"] .artikel-content h4 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .artikel-body {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .artikel-body h1,
[data-theme="dark"] .artikel-body h2,
[data-theme="dark"] .artikel-body h3,
[data-theme="dark"] .artikel-body h4,
[data-theme="dark"] .artikel-body h5,
[data-theme="dark"] .artikel-body h6 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .artikel-body b,
[data-theme="dark"] .artikel-body strong {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .artikel-body i,
[data-theme="dark"] .artikel-body em {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .artikel-body blockquote {
  background-color: var(--bg-tertiary) !important;
  border-left-color: var(--primary-color) !important;
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .artikel-body hr {
  border-top-color: var(--border-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .xwell {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .xwell h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .xwell h2.arti {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .xwell h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .xwell h4 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .contoh-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contoh-number {
    margin-right: 0;
    margin-bottom: 0.25rem;
    min-width: auto;
  }
  
  .contoh-text {
    margin-left: 0;
  }
  
  /* Article responsive */
  .artikel-body h1 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .artikel-body h2 {
    font-size: 1.2rem;
    margin-top: 1.3rem;
    margin-bottom: 0.7rem;
  }
  
  .artikel-body h3 {
    font-size: 1.1rem;
    margin-top: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .artikel-body h4 {
    font-size: 1rem;
    margin-top: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .artikel-body p {
    margin-bottom: 0.7rem !important;
  }
  
  .artikel-body ul,
  .artikel-body ol {
    margin-left: 1rem;
    margin-top: 0;
    margin-bottom: 0.7rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .artikel-body li {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.1;
  }
  
  .artikel-body blockquote {
    margin: 1rem 0;
    padding: 0.5rem 0.75rem;
  }
  
  .ai-section {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
}

.ai-loading-state .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}

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

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

.ai-loading-state p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.retry-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Lazy Loading Animation */
.ai-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ai-section.loaded {
  opacity: 1;
  transform: translateY(0);
}

.ai-section.loading {
  opacity: 0.7;
}

/* Intersection Observer Trigger */
.ai-section[data-ai-type] {
  min-height: 200px;
  position: relative;
}

.ai-section[data-ai-type]:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ai-section.loaded:before {
  display: none;
}

/* Dark mode untuk loading states */
[data-theme="dark"] .ai-loading-state {
  background-color: var(--bg-tertiary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .ai-loading-state p {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .ai-section[data-ai-type]:before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

/* Audio Button Styles */
.audio-btn, .audio-btn-small {
  background: rgba(37, 99, 235, 0.1);
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 18px;
  height: 40px;
  width: 40px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.audio-btn-small {
  height: 36px;
  width: 36px;
  font-size: 16px;
  margin-left: 12px;
}

.audio-btn-list {
  height: 24px;
  width: 24px;
  font-size: 12px;
  margin-left: 5px;
  vertical-align: middle;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.audio-btn:hover, .audio-btn-small:hover, .audio-btn-list:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.6);
  color: var(--primary-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.audio-btn:active, .audio-btn-small:active, .audio-btn-list:active {
  transform: scale(0.95);
}

.audio-btn:focus, .audio-btn-small:focus, .audio-btn-list:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Dark mode audio buttons */
[data-theme="dark"] .audio-btn,
[data-theme="dark"] .audio-btn-small,
[data-theme="dark"] .audio-btn-list {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

[data-theme="dark"] .audio-btn:hover,
[data-theme="dark"] .audio-btn-small:hover,
[data-theme="dark"] .audio-btn-list:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.7);
  color: #93c5fd;
}

/* Audio button in headers */
h1 .audio-btn, h2 .audio-btn-small {
  margin-left: 15px;
}

/* Responsive audio buttons */
@media (max-width: 768px) {
  .audio-btn {
    height: 36px;
    width: 36px;
    font-size: 16px;
    margin-left: 8px;
  }
  
  .audio-btn-small {
    height: 32px;
    width: 32px;
    font-size: 14px;
    margin-left: 10px;
  }
  
  .audio-btn-list {
    height: 20px;
    width: 20px;
    font-size: 10px;
    margin-left: 4px;
  }
  
  h1 .audio-btn, h2 .audio-btn-small {
    margin-left: 10px;
  }
}

/* Audio button animation */
@keyframes audio-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.audio-btn.playing, .audio-btn-small.playing, .audio-btn-list.playing {
  animation: audio-pulse 1s infinite;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  color: #10b981;
}

[data-theme="dark"] .audio-btn.playing,
[data-theme="dark"] .audio-btn-small.playing,
[data-theme="dark"] .audio-btn-list.playing {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.7);
  color: #34d399;
}

/* Print styles */
@media print {
  .theme-toggle,
  .search-suggestions,
  .voice-search-btn,
  .ai-loading,
  .audio-btn,
  .audio-btn-small,
  .audio-btn-list {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .ai-section {
    break-inside: avoid;
  }
}
