:root {
  --primary-color: #0A4C9A;
  --secondary-color: #00A98F;
  --sidebar-width: 250px;
  --header-height: 56px;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --text-muted: #6c757d;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
}

.navbar {
  height: var(--header-height);
  background: linear-gradient(135deg, var(--primary-color) 0%, #0c5aa8 100%);
  box-shadow: 0 2px 8px rgba(10, 76, 154, 0.1);
  z-index: 1000;
  padding: 0.25rem 0;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1rem;
}

.navbar-brand span {
  letter-spacing: -0.02em;
  font-size: 0.9rem;
}

.ondc-logo {
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  padding: 3px;
  border-radius: 4px;
  height: 30px !important;
}

.navbar .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

.ondc-logo:hover {
  transform: scale(1.05);
  background: white;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.main-container {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  background: #fafafa;
}

.sidebar {
  width: var(--sidebar-width);
  background: #f8faff;
  border-right: 1px solid rgba(10, 76, 154, 0.08);
  padding: 1.25rem;
  overflow-y: auto;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
}

.sidebar-header h5 {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.category-list {
  max-height: 450px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.category-item {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.375rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  font-size: 0.875rem;
}

.category-item:hover {
  background-color: white;
  border-color: var(--border-color);
  transform: translateX(4px);
}

.category-item.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0c5aa8 100%);
  color: white;
  box-shadow: 0 4px 8px rgba(10, 76, 154, 0.25);
}

.category-count {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.category-item:not(.active) .category-count {
  background: rgba(10, 76, 154, 0.1);
  color: var(--primary-color);
}

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

.sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 0.375rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.main-content {
  flex: 1;
  padding: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.search-section {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(10, 76, 154, 0.08);
}

.search-wrapper {
  position: relative;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--primary-color);
  pointer-events: none;
  font-size: 1.125rem;
}

.search-input {
  padding: 0.625rem 3rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(10, 76, 154, 0.15);
  transform: translateY(-1px);
}

.search-clear {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  text-decoration: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--bg-light);
}

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

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

.suggestion-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.suggestion-snippet {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quick-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.quick-filter {
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(10, 76, 154, 0.2);
  background: white;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.2s ease;
}

.quick-filter:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(10, 76, 154, 0.2);
}

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

.results-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-results .faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.faq-results .faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.faq-results .faq-item:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.faq-results .faq-item:hover::before {
  transform: scaleX(1);
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq-answer-preview {
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.85;
}

.faq-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.faq-category {
  background: var(--bg-light);
  color: var(--text-color);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.75rem;
}

.faq-tags {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.faq-tag {
  background: rgba(10, 76, 154, 0.08);
  color: var(--primary-color);
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.faq-tag:hover {
  background: rgba(10, 76, 154, 0.2);
  transform: translateY(-1px);
}

mark {
  background-color: #fff3cd;
  padding: 0.125rem 0;
  border-radius: 0.125rem;
}

.loading-state,
.no-results {
  padding: 1.5rem;
  text-align: center;
}

.loading-state p,
.loading-state small {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.loading-state .mb-4 {
  margin-bottom: 0.75rem !important;
}

.loading-logo {
  animation: pulse 2s infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  object-fit: contain;
  height: 30px;
}

.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}

.pagination {
  margin-top: 1.25rem;
}

.page-link {
  color: var(--primary-color);
  border-radius: 0.25rem;
  margin: 0 0.125rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.page-link:hover {
  background-color: var(--bg-light);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal-dialog {
  max-width: 900px;
  margin: 1rem auto;
}

.modal-content {
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

#feedbackEmail {
  border: 1px solid #dee2e6;
  transition: border-color 0.15s ease-in-out;
}

#feedbackEmail:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.1);
}

#feedbackEmail.is-invalid {
  border-color: #dc3545;
}

#feedbackEmail.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
}

.modal-header {
  background: var(--primary-color);
  border-radius: 0;
  border: none;
  padding: 1rem 1.5rem;
  position: relative;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title i {
  font-size: 1rem;
  opacity: 0.9;
}

.btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
}

.btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  line-height: 1.6;
  font-size: 0.9375rem;
  color: #2d3748;
  overflow-y: auto;
  flex: 1;
  max-height: calc(100vh - 200px);
}

.modal-body::-webkit-scrollbar {
  width: 5px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 2px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}

.modal.fade .modal-dialog {
  transition: transform 0.2s ease-out;
}

@media (min-width: 576px) {
  .modal-dialog {
    margin: 1.75rem auto;
  }
}

.modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4, .modal-body h5 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.125rem;
}

.modal-body h2 {
  font-size: 1rem;
}

.modal-body h3, .modal-body h4, .modal-body h5 {
  font-size: 0.9375rem;
}

.modal-body ul, .modal-body ol {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}

.modal-body li {
  margin-bottom: 0.375rem;
  line-height: 1.5;
  font-size: 0.875rem;
}

.modal-body li::marker {
  color: var(--secondary-color);
}

.modal-body code {
  background-color: rgba(10, 76, 154, 0.06);
  color: var(--primary-color);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: 'Monaco', 'Consolas', monospace;
}

.modal-body pre {
  background-color: #f8f9fa;
  color: #1a202c;
  padding: 0.75rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 0.75rem 0;
  font-size: 0.8125rem;
}

.modal-body blockquote {
  border-left: 3px solid var(--secondary-color);
  padding-left: 0.75rem;
  margin: 0.75rem 0;
  color: #4a5568;
  font-style: italic;
  background: rgba(0, 169, 143, 0.03);
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.25rem 0.25rem 0;
  font-size: 0.875rem;
}

.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
  font-size: 0.8125rem;
}

.modal-body table th {
  background: #f8f9fa;
  color: var(--primary-color);
  padding: 0.5rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
}

.modal-body table td {
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.modal-body table tr:last-child td {
  border-bottom: none;
}

.modal-body table tr:nth-child(even) {
  background: #fafbfc;
}

.modal-body hr {
  margin: 1rem 0;
  border: none;
  height: 1px;
  background: var(--border-color);
}

.modal-footer {
  background: #f8faff;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: block;
  flex-shrink: 0;
  max-height: 200px;
  overflow-y: auto;
}

.modal-meta-info {
  display: inline-block;
  margin-right: 1rem;
}

.modal-footer .d-flex {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-category-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.375rem;
}

.modal-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.modal-tag {
  background: rgba(0, 169, 143, 0.08);
  color: var(--secondary-color);
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-tag:hover {
  background: rgba(0, 169, 143, 0.2);
  transform: translateY(-1px);
}

.modal-updated {
  font-size: 0.75rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.modal-updated i {
  font-size: 0.75rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-copy {
  background: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

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

.btn-copy.copied {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-copy i {
  font-size: 0.75rem;
}

.modal-footer .btn {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
}

.related-faqs {
  background: #f8faff;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
  border: 1px solid rgba(10, 76, 154, 0.08);
}

.related-faqs h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.related-faqs h5 i {
  font-size: 0.875rem;
  opacity: 0.8;
}

.related-faq-item {
  background: white;
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.375rem;
  border: 1px solid #e5e5e5;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.related-faq-item:hover {
  border-color: var(--primary-color);
  background: rgba(10, 76, 154, 0.02);
}

.related-faq-question {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.related-faq-preview {
  font-size: 0.75rem;
  color: #718096;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

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

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    z-index: 999;
    transition: left 0.3s ease;
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .faq-results.grid-view {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand span {
    font-size: 0.875rem;
  }
  
  .ondc-logo {
    height: 28px !important;
  }
  
  footer .row > div {
    text-align: center !important;
  }
  
  footer .d-flex {
    justify-content: center !important;
  }
}

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

.faq-item {
  animation: fadeIn 0.3s ease forwards;
}

footer {
  margin-top: 2rem;
  padding: 1rem 0 !important;
  background: #f8f9fa;
  border-top: 1px solid var(--border-color);
}

footer .footer-logo {
  opacity: 0.9;
  transition: opacity 0.3s ease;
  object-fit: contain;
  height: 20px;
}

footer a {
  transition: color 0.3s ease;
  font-size: 0.75rem;
}

footer a:hover {
  color: var(--secondary-color) !important;
}

footer h6 {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

footer small {
  font-size: 0.6875rem;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.feedback-section {
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  border-top: 1px solid #f5f5f5;
  animation: fadeIn 0.3s ease;
}

.feedback-header {
  margin-bottom: 0.25rem;
}

.feedback-question {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feedback-actions {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.feedback-btn {
  padding: 0.125rem 0.375rem;
  border: 1px solid #e5e5e5;
  background: white;
  color: #6b7280;
  border-radius: 0.125rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.625rem;
}

.feedback-btn i {
  font-size: 0.625rem;
}

.feedback-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feedback-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-btn.like-btn.active {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.feedback-btn.dislike-btn.active {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

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

.feedback-btn.comment-btn:hover {
  background: #0c5aa8;
  border-color: #0c5aa8;
}

.feedback-btn i {
  font-size: 0.875rem;
}

.feedback-message {
  margin-top: 0.75rem;
  animation: slideIn 0.3s ease;
}

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

#commentModal .modal-dialog {
  max-width: 500px;
}

#commentModal .modal-header {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1rem;
}

#commentModal .modal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
}

#commentModal .modal-body {
  padding: 1rem;
}

#commentModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  padding: 0.25rem;
}

#commentModal .question-text {
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
  font-size: 0.875rem;
}

#commentModal textarea {
  resize: vertical;
  min-height: 80px;
  font-size: 0.875rem;
}

#commentModal .form-label {
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

#commentModal .modal-footer {
  padding: 0.75rem 1rem;
}

.toast {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
}

.toast.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.toast.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.feedback-notification {
  position: fixed;
  top: 70px;
  right: 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  animation: slideIn 0.3s ease-out;
}

.feedback-notification.success {
  border-color: #10b981;
  color: #10b981;
}

.feedback-notification.error {
  border-color: #ef4444;
  color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.category-item.loading {
  background-color: rgba(10, 76, 154, 0.05);
  border-color: rgba(10, 76, 154, 0.2);
  cursor: wait;
}

.category-item.loading:hover {
  transform: none;
  background-color: rgba(10, 76, 154, 0.05);
}

.category-item .fa-spinner {
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

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

.error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #f56565;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(245, 101, 101, 0.3);
  z-index: 9999;
  transform: translateX(400px);
  transition: all 0.3s ease;
  max-width: 300px;
  font-weight: 500;
  border-left: 4px solid #e53e3e;
}

.error-toast.show {
  transform: translateX(0);
}

.error-toast::before {
  content: '⚠️';
  margin-right: 0.5rem;
}

.category-item {
  position: relative;
  overflow: hidden;
}

.category-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.category-item.loading::after {
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@media (max-width: 768px) {
  .feedback-actions {
    justify-content: center;
  }
  
  .feedback-btn {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
  }
  
  .feedback-section {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}