/* Reset and Base Styles */
@font-face {
  font-family: 'Space Grotesk';
  src: url(/font/Space-Grotesk.ttf) format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: 'Space Grotesk' !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: 245 247 250;
  /* jasnoszare tĹo zamiast czystej bieli */
  --foreground: 20 23 30;
  /* ciemny tekst, ale nie czysty czarny */
  --card: 255 255 255;
  /* klasyczna biaĹa karta */
  --card-foreground: 20 23 30;
  --popover: 255 255 255;
  --popover-foreground: 20 23 30;
  --primary: 14 165 233;
  /* #0ea5e9 â niebiesko-turkusowy */
  --primary-foreground: 255 255 255;
  --secondary: 234 236 240;
  /* delikatny szary */
  --secondary-foreground: 20 23 30;
  --muted: 234 236 240;
  --muted-foreground: 100 116 139;
  --accent: 14 165 233;
  /* taki sam jak primary */
  --accent-foreground: 255 255 255;
  --destructive: 220 38 38;
  /* bardziej Ĺźywa czerwieĹ */
  --destructive-foreground: 255 255 255;
  --border: 222 226 230;
  --input: 222 226 230;
  --ring: 14 165 233;
  --radius: 0.75rem;
  --search: 255 255 255;
}

.dark {
  --background: 14 17 22;
  --foreground: 230 230 230;
  --card: 26 29 36;
  --card-foreground: 230 230 230;
  --popover: 26 29 36;
  --popover-foreground: 230 230 230;
  --primary: 34 211 238;
  --primary-foreground: 14 17 22;
  --secondary: 42 47 58;
  --secondary-foreground: 230 230 230;
  --muted: 42 47 58;
  --muted-foreground: 156 163 175;
  --accent: 34 211 238;
  --accent-foreground: 14 17 22;
  --destructive: 127 29 29;
  --destructive-foreground: 248 250 252;
  --border: 42 47 58;
  --input: 42 47 58;
  --ring: 14 165 233;
  --search: 26 29 36 / 50%;
}

/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding-top: 0;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: rgb(var(--background));
}

/* Header Styles */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-btn,
.settings-btn,
.back-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  color: rgb(var(--foreground));
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover,
.settings-btn:hover,
.back-btn:hover {
  background-color: rgb(var(--muted));
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-2 {
  width: 1.25rem;
  height: 1.25rem;
  fill: rgb(var(--foreground));
}

.icon-small {
  width: 1rem;
  height: 1rem;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 14rem;
  z-index: 50;
  padding: 0.25rem;

  /* efekt poczÄtkowy */
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}


.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: rgb(var(--foreground));
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgb(var(--muted));
}

.dropdown-separator {
  height: 1px;
  background-color: rgb(var(--border));
  margin: 0.25rem 0;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 0 1rem;
}

.search-container {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Logo */
.logo-container {
  text-align: center;
}

.logo {
  font-size: 3.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-flex;       /* flex tylko w obrębie logo */
  align-items: center;        /* pionowe wyśrodkowanie tekstu i ikony */
  gap: 0.25em;
}


.logo img.spark-icon {
  height: 1em;               /* dopasowanie do font-size tekstu */
  width: auto;
  display: inline-block;
  vertical-align: middle;    /* wyrównanie do środka tekstu */
  flex-shrink: 0;            /* nie kurczy się */
  margin-bottom: 0;          /* minimalna korekta, nie zmienia układu */
}

/* Search Form */
.search-form {
  position: relative;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  color: rgb(var(--muted-foreground));
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 1rem 2.5rem 1rem 3rem;
  font-size: 0.95rem;
  border: 2px solid rgb(var(--border));
  border-radius: 9999px;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.08);
  background-color: rgb(var(--search));
}

.search-input:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-buttons {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.voice-btn,
.search-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.voice-btn {
  color: rgb(var(--primary));
}

.voice-btn:hover,
.search-btn:hover {
  background-color: rgb(var(--muted));
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.action-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid rgb(var(--border));
  border-radius: 0.375rem;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.action-btn:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Quick Links */
.quick-links {
  margin-top: 4rem;
  text-align: center;
}

.quick-links-text {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin-bottom: 1rem;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.language-link {
  color: #2563eb;
  text-decoration: none;
}

.special-link {
  color: #2563eb;
  text-decoration: underline;
  margin-left: 36px;
  margin-right: 36px;
  margin-bottom: 20px;
  display: inline-block;
}

.language-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid rgb(var(--border));
}

.footer-content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgb(var(--foreground));
}

.dark .footer {
  border-top: 1px solid rgb(var(--border));
}

/* Search Results Page - Fixed/Sticky Header */
.search-header,
.searceh-headr {
  border-bottom: 1px solid rgb(var(--border));
  background-color: rgba(var(--background), 0.95);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark .search-header,
.dark .searceh-headr {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
}

.search-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: rgb(var(--foreground));
}

.search-logo-text {
  font-size: 1.5rem;
  font-weight: 600;
}

.search-header-form {
  flex: 1;
  max-width: 32rem;
}

.search-header-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-header-icon {
  position: absolute;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  color: rgb(var(--muted-foreground));
  z-index: 1;
}

.search-header-input {
  width: 100%;
  padding: 0.75rem 4rem 0.75rem 2.5rem;
  border: 2px solid rgb(var(--border));
  border-radius: 9999px;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  outline: none;
  transition: border-color 0.2s ease;
}

.search-header-input:focus {
  border-color: rgb(var(--primary));
}

.search-header-buttons {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.search-header-voice-btn,
.search-header-search-btn {
  color: rgb(var(--muted-foreground));
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 2rem;
  height: 2rem;
}

.search-header-voice-btn {
  color: rgb(var(--primary));
}

.search-header-voice-btn:hover,
.search-header-search-btn:hover {
  background-color: rgb(var(--muted));
}

.search-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Search Navigation */
.search-nav {
  padding: 0 1.5rem 0.75rem;
}

.search-nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.search-nav-btn {
  background: none;
  border: none;
  padding: 0 0 0.5rem 0;
  cursor: pointer;
  color: rgb(var(--muted-foreground));
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.search-nav-btn:hover {
  color: rgb(var(--foreground));
}

.search-nav-btn.active {
  color: rgb(var(--primary));
  border-bottom-color: rgb(var(--primary));
}

/* Search Results - Add margin for fixed header */
.search-results-main {
  padding-top: 1.5rem;
  margin-top: 120px;
  /* Adjust based on your header height */
}


.search-results-container {
  max-width: 64rem;
}

.search-results-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-info-text {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.search-footer {
  margin-top: 4rem;
}

/* Settings Page Styles */
.settings-header {
  border-bottom: 1px solid rgb(var(--border));
  background-color: rgba(var(--background), 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.settings-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.settings-header-text {
  flex: 1;
}

.settings-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.settings-subtitle {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

.settings-main {
  padding: 2rem 1.5rem;
}

.settings-container {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-card {
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
}

.settings-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgb(var(--border));
}

.settings-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.settings-card-description {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

.settings-card-content {
  padding: 1.5rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-group:last-child {
  margin-bottom: 0;
}

.setting-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.setting-description {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.setting-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(var(--border));
  border-radius: 0.375rem;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  font-size: 0.875rem;
}

.setting-slider {
  width: 100%;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: rgb(var(--muted));
  outline: none;
}

.setting-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(var(--primary));
  cursor: pointer;
}

.setting-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(var(--primary));
  cursor: pointer;
  border: none;
}

.settings-separator {
  height: 1px;
  background-color: rgb(var(--border));
  margin: 1.5rem 0;
}

.setting-section-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Theme Options */
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.theme-option {
  cursor: pointer;
}

.theme-option input[type="radio"] {
  display: none;
}

.theme-option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid rgb(var(--border));
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.theme-option input[type="radio"]:checked+.theme-option-content {
  border-color: rgb(var(--primary));
  background-color: rgba(var(--primary), 0.1);
}

.theme-option-content:hover {
  border-color: rgb(var(--primary));
}

/* Toggle Switches */
.setting-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.setting-toggle-info {
  flex: 1;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(var(--muted));
  transition: 0.2s;
  border-radius: 1.5rem;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked+.toggle-slider {
  background-color: rgb(var(--primary));
}

input:checked+.toggle-slider:before {
  transform: translateX(1.5rem);
}

/* Setting Buttons */
.setting-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: 0.375rem;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  text-decoration: none;
}

.setting-btn:hover {
  background-color: rgb(var(--muted));
}

.reset-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgb(var(--destructive));
  border-radius: 0.375rem;
  background-color: rgb(var(--destructive));
  color: rgb(var(--destructive-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.reset-btn:hover {
  opacity: 0.9;
}

.sign-in-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgb(var(--primary));
  border-radius: 0.375rem;
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.sign-in-btn:hover {
  opacity: 0.9;
}

.account-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
}

.account-details {
  flex: 1;
}

.account-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}

.account-description {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

/* Voice Search Page Styles */
.voice-header {
  border-bottom: 1px solid rgb(var(--border));
  padding: 1rem;
}

.voice-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.voice-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.voice-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 0 1rem;
}

.voice-container {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.voice-logo-container {
  margin-bottom: 2rem;
}

.voice-logo {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.voice-subtitle {
  color: rgb(var(--muted-foreground));
  font-size: 1rem;
}

.voice-interface {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mic-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.mic-button {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: none;
  background-color: rgb(var(--primary));
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mic-button:hover {
  background-color: rgb(var(--primary));
  opacity: 0.9;
}

.mic-button.listening {
  background-color: #ef4444;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
}

.mic-icon {
  width: 3rem;
  height: 3rem;
}

.listening-animation {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #ef4444;
  opacity: 0;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.listening-animation.active {
  opacity: 1;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.voice-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

.status-description {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

.listening-title {
  color: #ef4444;
}

.result-title {
  color: #22c55e;
}

.voice-waveform {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.wave-bar {
  width: 0.5rem;
  height: 2rem;
  background-color: #ef4444;
  border-radius: 0.25rem;
  animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(2) {
  animation-delay: 0.1s;
  height: 1.5rem;
}

.wave-bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 2.5rem;
}

.wave-bar:nth-child(4) {
  animation-delay: 0.3s;
  height: 1rem;
}

.wave-bar:nth-child(5) {
  animation-delay: 0.4s;
  height: 1.75rem;
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.5);
  }
}

.transcript-card {
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.transcript-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--primary));
}

.transcript-text {
  font-size: 1.125rem;
  margin: 0;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.search-result-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.search-result-btn:hover {
  opacity: 0.9;
}

.try-again-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgb(var(--border));
  border-radius: 0.375rem;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.try-again-btn:hover {
  background-color: rgb(var(--muted));
}

.voice-commands {
  margin-top: 3rem;
}

.commands-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.command-item {
  padding: 0.75rem;
  background-color: rgb(var(--muted));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.command-item:hover {
  background-color: rgb(var(--accent));
}

.command-text {
  font-weight: 500;
}

.voice-footer {
  margin-top: 4rem;
}

.voice-privacy-note {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

/* Notification */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

/* Responsive Design */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.9rem;
    font-weight: 700;
  }

  .voice-logo {
    font-size: 2rem;
  }

  .mic-button {
    width: 6rem;
    height: 6rem;
  }

  .mic-icon {
    width: 2rem;
    height: 2rem;
  }

  .settings-btn {
    display: none;
  }

  /* Mobile header layout changes */
  .search-header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1rem;
  }

  /* Top row: Settings icon (left) and Logo (center) */
  .search-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Move settings to the left on mobile */
  .search-header-actions {
    order: -1;
  }

  .search-logo {
    flex: 1;
    justify-content: center;
  }

  /* Search form takes full width below */
  .search-header-form {
    width: 100%;
    max-width: none;
  }

  /* Improve search input on mobile */
  .search-header-input {
    padding: 0.875rem 4rem 0.875rem 2.5rem;
    font-size: 16px;
    /* Prevents zoom on iOS */
    border-radius: 12px;
  }

  .search-header-input-container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
  }

  /* Adjust search navigation for mobile */
  .search-nav {
    padding: 0 1rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .search-nav-links {
    padding-top: 10px;
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: max-content;
  }

  .settings-container {
    padding: 0 1rem;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .commands-grid {
    grid-template-columns: 1fr;
  }

  .gsc-input-box {
    height: 44px !important;
  }

  .gsc-search-button {
    width: 36px !important;
    height: 36px !important;
  }

  .search-results-container {
    padding-top: 50px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

/* Additional mobile-specific improvements */
@media (max-width: 480px) {
  .search-header-content {
    padding: 0.5rem 0.75rem;
  }

  .search-logo-text {
    font-size: 1.25rem;
  }

  .search-header-input {
    padding: 0.75rem 3.5rem 0.75rem 2.25rem;
  }

  .search-header-buttons {
    right: 0.25rem;
  }

  .search-header-voice-btn,
  .search-header-search-btn {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.375rem;
  }
}






.border-short {
  display: inline-block;
  position: relative;
  padding: 4px 8px 6px;
  /* trochÄ wiÄcej paddingu dla tĹa i podkreĹlenia */
  color: rgb(var(--foreground));
  background-color: rgb(var(--secondary));
  /* delikatne tĹo jasne */
  border-radius: var(--radius);
}