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

/* Modal Styles */
.pancake-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Removed backdrop blur and dark background to allow interaction with page */
  z-index: 999999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pancake-modal.show {
  opacity: 1;
  pointer-events: none;
}

.pancake-modal-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.pancake-modal.show .pancake-modal-content {
  transform: translateX(0);
}

/* Analysis view styling */
.pancake-modal-content.analysis-view {
  width: 500px;
  /* Slightly wider for analysis content */
}

/* Loading modal styling */
.pancake-modal-content.loading-modal {
  width: 450px;
  justify-content: center;
}

.pancake-modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 80px;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.pancake-logo {
  width: auto;
  height: 32px;
  display: block;
  background: transparent;
  max-width: 200px;
  object-fit: contain;
}

.pancake-header-title {
  color: white;
  text-align: center;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: block;
}

.pancake-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  display: none;
  /* Hide title since we're using logo */
}

.pancake-back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.pancake-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pancake-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.pancake-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pancake-modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Global Loading Animation */
.global-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 20px;
}

.global-loading-animation {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.loading-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-circle:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-circle:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-circle:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loadingBounce {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.global-loading-container h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
}

.global-loading-container p {
  margin: 0 0 32px 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  max-width: 300px;
}

.loading-progress {
  width: 100%;
  max-width: 300px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0061ff, #0052d9, #0061ff);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: progressMove 2s ease-in-out infinite;
  width: 70%;
}

@keyframes progressMove {
  0% {
    transform: translateX(-100%);
    background-position: 200% 0;
  }

  50% {
    transform: translateX(0%);
    background-position: 0% 0;
  }

  100% {
    transform: translateX(100%);
    background-position: -200% 0;
  }
}

/* Status indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
  border-radius: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.status-text {
  font-size: 13px;
  color: #10b981;
  font-weight: 500;
}

/* Stats */
.pancake-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.pancake-stat-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.pancake-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #0061ff;
  margin-bottom: 8px;
  line-height: 1;
}

.pancake-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

@keyframes numberPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
    color: #10b981;
    font-weight: 700;
  }
}

/* Modal buttons */
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-btn {
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.modal-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.modal-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.modal-btn-secondary {
  background: white;
  color: #0061ff;
  border: 1px solid #0061ff;
}

.modal-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.1);
}

.spinning {
  animation: spin 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Modal info */
.modal-info {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.modal-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.modal-info p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Conversations */
.pancake-conversations h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.pancake-conversations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pancake-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.pancake-empty-state p {
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.pancake-empty-state small {
  color: #94a3b8;
  font-style: italic;
}

.pancake-conversation-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.pancake-conversation-item:hover {
  border-color: #0061ff;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.1);
  transform: translateY(-2px);
}

.pancake-conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pancake-conversation-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
  flex: 1;
  margin-right: 12px;
}

/* Grouped Actions Layout */
.pancake-conversation-actions-grouped {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.pancake-action-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pancake-group-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.pancake-group-buttons {
  display: flex;
  gap: 6px;
}

/* Individual Analysis Buttons */
.pancake-btn-individual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.pancake-btn-individual:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pancake-analyze-btn.pancake-btn-individual {
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  border: 1px solid #0052d9;
  font-family: 'Inter', sans-serif;
}

.pancake-analyze-btn.pancake-btn-individual:hover {
  background: linear-gradient(135deg, #0052d9 0%, #003d99 100%);
  border-color: #003d99;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-analyze-profile.pancake-btn-individual {
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  border: 1px solid #0052d9;
  font-family: 'Inter', sans-serif;
}

.pancake-analyze-profile.pancake-btn-individual:hover {
  background: linear-gradient(135deg, #0052d9 0%, #003d99 100%);
  border-color: #003d99;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

/* Combined Analysis Button */
.pancake-btn-combined {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  min-height: 36px;
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  border: 1px solid #0052d9;
}

.pancake-btn-combined:hover {
  background: linear-gradient(135deg, #0052d9 0%, #003d99 100%);
  border-color: #003d99;

  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-btn-combined:active {
  transform: translateY(0);
}

/* Button Icons */
.pancake-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.pancake-btn-text {
  font-weight: inherit;
}

/* Loading states */
.pancake-btn-individual:disabled,
.pancake-btn-combined:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pancake-btn-individual.loading:after,
.pancake-btn-combined.loading:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes pancake-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .pancake-group-buttons {
    flex-direction: column;
  }

  .pancake-btn-individual {
    flex: none;
  }

  .pancake-btn-text {
    font-size: 11px;
  }
}

/* Focus states for accessibility */
.pancake-btn-individual:focus,
.pancake-btn-combined:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Success states */
.pancake-btn-individual.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border-color: #059669 !important;
}

.pancake-btn-combined.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
}

/* Error states */
.pancake-btn-individual.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  border-color: #dc2626 !important;
}

.pancake-btn-combined.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #dc2626 !important;
}

.pancake-api-count {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.pancake-conversation-meta {
  margin-bottom: 12px;
}

.pancake-conversation-meta small {
  color: #94a3b8;
  font-size: 12px;
}

.pancake-conversation-actions {
  display: flex;
  justify-content: flex-end;
}

.pancake-analyze-btn {
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.pancake-analyze-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-analyze-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.pancake-analyze-profile {
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.pancake-analyze-profile:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-analyze-profile:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.pancake-analyze-profile.loading-state {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  pointer-events: none;
}

.pancake-analyze-profile.success-state {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pancake-analyze-profile.error-state {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.pancake-analyze-btn.loading-state {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  pointer-events: none;
}

.pancake-analyze-btn.success-state {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pancake-analyze-btn.error-state {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Analysis Content Styles */
.analysis-content {
  height: 100%;
  overflow-y: auto;
}

.analysis-section {
  padding: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.analysis-section:last-child {
  border-bottom: none;
}

.analysis-section.highlight {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
}

.analysis-section.strategy {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #66d0ff 0%, #2b7cff 100%);
  box-shadow:
    0 6px 16px rgba(43, 124, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.section-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.section-content {
  line-height: 1.6;
  color: #374151;
}

.section-content p {
  margin: 0;
  font-size: 14px;
}

.content-item {
  margin-bottom: 12px;
  font-size: 14px;
}

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

.content-item strong {
  color: #1f2937;
  font-weight: 600;
}

.bullet-item {
  margin-bottom: 8px;
  padding-left: 8px;
  font-size: 14px;
  color: #4b5563;
}

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

/* Analysis item styling for multiple results */
.analysis-item {
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(0, 97, 255, 0.03);
  border-left: 3px solid #0061ff;
  border-radius: 0 8px 8px 0;
}

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

.analysis-item-content {
  line-height: 1.6;
}

.analysis-item-content .content-item {
  margin-bottom: 8px;
}

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

.analysis-item-content .bullet-item {
  margin-bottom: 6px;
  padding-left: 4px;
}

.analysis-item-content .bullet-item:last-child {
  margin-bottom: 0;
}

/* Enhanced content styling with clear title formatting */
.content-item {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

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

/* Title styling - both class and strong tags */
.content-item .content-title,
.content-item strong.content-title {
  color: #1e293b;
  font-weight: 700;
  font-size: 14px;
}

/* Regular strong text within content */
.content-item strong:not(.content-title) {
  color: #1f2937;
  font-weight: 600;
}

/* Any strong tag should be bold */
strong {
  font-weight: 600;
  color: #1f2937;
}

.bullet-item {
  margin-bottom: 8px;
  padding-left: 8px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.bullet-item strong {
  color: #1f2937;
  font-weight: 600;
}

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

/* Strong styling for all analysis content */
.analysis-content strong {
  font-weight: 600;
  color: #1f2937;
}

.section-content p strong {
  color: #1f2937;
  font-weight: 600;
}

/* Analysis item spacing */
.analysis-item-content .content-item {
  margin-bottom: 12px;
}

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

.analysis-item-content .bullet-item {
  margin-bottom: 8px;
  padding-left: 4px;
}

.analysis-item-content .bullet-item:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {

  .pancake-modal-content,
  .pancake-modal-content.analysis-view,
  .pancake-modal-content.loading-modal {
    width: 100%;
  }

  .pancake-stats {
    grid-template-columns: 1fr;
  }

  .analysis-section {
    padding: 20px;
  }

  .section-header h4 {
    font-size: 15px;
  }

  .section-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .global-loading-container {
    padding: 20px;
  }

  .global-loading-container h3 {
    font-size: 18px;
  }

  .pancake-logo {
    height: 28px;
    max-width: 180px;
  }

  .analysis-item {
    padding: 12px;
  }

}

/* Tab Navigation */
.pancake-tab-navigation {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}

.pancake-tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  min-width: 0;
  font-family: 'Inter', sans-serif;
}

.pancake-tab-btn:hover {
  color: #0061ff;
  background: rgba(0, 97, 255, 0.05);
}

.pancake-tab-btn.active {
  color: #0061ff;
  border-bottom-color: #0061ff;
  background: white;
}

/* Tab Content */
.pancake-tab-content {
  display: none;
  min-height: 400px;
  /* Ensure minimum height */
  flex: 1;
  /* Take available space */
}

.pancake-tab-content.active {
  display: block;
}

/* Setup Tab Styles */
.setup-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setup-item:hover {
  border-color: #0061ff;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.1);
  transform: translateY(-2px);
}

.setup-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setup-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 97, 255, 0.1);
  border-radius: 8px;
}

.setup-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.setup-info p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.setup-arrow {
  font-size: 16px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.setup-item:hover .setup-arrow {
  transform: translateX(4px);
  color: #0061ff;
}

.fb-dashboard-license-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 8px 0 16px 0;
  border-radius: 10px;
  border: 1px solid #facc15;
  background: #fef9c3;
  color: #713f12;
  font-size: 13px;
  line-height: 1.45;
}

.fb-dashboard-license-alert .icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.fb-dashboard-license-alert .text {
  flex: 1;
  font-weight: 600;
}


/* Disclaimer Modal Styles */
.pancake-disclaimer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000001;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pancake-disclaimer-modal.pancake-disclaimer-show {
  opacity: 1;
}

.pancake-disclaimer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.pancake-disclaimer-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  margin: 20px;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.pancake-disclaimer-show .pancake-disclaimer-content {
  transform: translateY(0);
}

.pancake-disclaimer-header {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  padding: 25px 30px;
  text-align: center;
  position: relative;
}

.pancake-disclaimer-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pancake-disclaimer-body {
  padding: 30px;
  overflow-y: auto;
  max-height: 50vh;
}

.pancake-disclaimer-body p {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.pancake-disclaimer-list {
  margin: 20px 0;
}

.pancake-disclaimer-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 10px;
}

.pancake-disclaimer-number {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pancake-disclaimer-text {
  color: #374151;
  font-size: 13px;
  line-height: 1.6;
}

.pancake-disclaimer-text strong {
  color: #dc2626;
  font-weight: 600;
}

.pancake-disclaimer-text em {
  color: #6b7280;
  font-style: italic;
}

.pancake-disclaimer-agreement {
  background: linear-gradient(135deg, #fee, #fef2f2);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  margin: 20px 0;
}

.pancake-disclaimer-agreement p {
  margin: 0;
  color: #7f1d1d;
  font-weight: 500;
  text-align: center;
}

.pancake-disclaimer-checkbox {
  margin: 25px 0;
  padding: 20px;
  background: #f0f9ff;
  border-radius: 10px;
  border: 2px solid #e0f2fe;
}

.pancake-disclaimer-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
}

.pancake-disclaimer-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pancake-disclaimer-checkmark {
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.pancake-disclaimer-checkbox-input:checked+.pancake-disclaimer-checkmark {
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  border-color: #0061ff;
}

.pancake-disclaimer-checkbox-input:checked+.pancake-disclaimer-checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pancake-disclaimer-checkbox-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.pancake-disclaimer-footer {
  padding: 20px 30px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.pancake-disclaimer-btn-cancel,
.pancake-disclaimer-btn-agree {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.pancake-disclaimer-btn-cancel {
  background: white;
  color: #6b7280;
  border: 2px solid #d1d5db;
}

.pancake-disclaimer-btn-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.pancake-disclaimer-btn-agree {
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-disclaimer-btn-agree:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 97, 255, 0.4);
}

.pancake-disclaimer-btn-agree:disabled {
  background: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Mobile responsive for disclaimer modal */
@media (max-width: 768px) {
  .pancake-disclaimer-content {
    width: 95%;
    max-height: 85vh;
    margin: 10px;
  }

  .pancake-disclaimer-header {
    padding: 20px;
  }

  .pancake-disclaimer-header h2 {
    font-size: 18px;
  }

  .pancake-disclaimer-body {
    padding: 20px;
    max-height: 55vh;
  }

  .pancake-disclaimer-item {
    padding: 12px;
  }

  .pancake-disclaimer-number {
    width: 20px;
    height: 20px;
    font-size: 11px;
    margin-right: 12px;
  }

  .pancake-disclaimer-text {
    font-size: 12px;
  }

  .pancake-disclaimer-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .pancake-disclaimer-btn-cancel,
  .pancake-disclaimer-btn-agree {
    width: 100%;
    min-width: auto;
  }
}

/* Sidebar Container */
.pancake-sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100%;
  z-index: 999999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  pointer-events: none;
  will-change: transform;
}

.pancake-sidebar.pancake-sidebar-show {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Overlay - transparent, no interference */
.pancake-sidebar-overlay {
  display: none;
}

/* Sidebar Content - simple overlay */
.pancake-sidebar-content {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: white;
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000000;
  pointer-events: all;
  border-left: 1px solid #e5e7eb;
  will-change: right;
}

.pancake-sidebar-show .pancake-sidebar-content {
  right: 0;
}

/* Header */
.pancake-sidebar-header {
  background: linear-gradient(135deg, #0061ff 0%, #00c2ff 100%);
  padding: 30px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

.pancake-sidebar-logo {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}

.pancake-sidebar-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pancake-sidebar-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pancake-sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.pancake-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body */
.pancake-sidebar-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

/* Collapsible Sections */
.pancake-sidebar-collapsible-section {
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pancake-sidebar-collapsible-section:hover {
  box-shadow: 0 2px 8px rgba(0, 97, 255, 0.1);
}

.pancake-sidebar-section-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.pancake-sidebar-section-header:hover {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.pancake-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.pancake-sidebar-section-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pancake-sidebar-section-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #374151;
}

.pancake-sidebar-status-text-mini {
  font-weight: 500;
}

.pancake-sidebar-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.pancake-sidebar-toggle-btn:hover {
  background: rgba(0, 97, 255, 0.1);
  color: #0061ff;
}

.pancake-sidebar-chevron {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.pancake-sidebar-section-content {
  padding: 20px;
  display: block;
}

/* Setup Section - Updated to match collapsible sections styling */
.pancake-sidebar-setup-desc {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pancake-sidebar-setup-desc p {
  color: #1e40af;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.pancake-sidebar-setup-desc p:last-child {
  margin-bottom: 0;
}

.pancake-sidebar-setup-desc strong {
  color: #0061ff;
  font-weight: 600;
}

.pancake-sidebar-setup-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(0, 97, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.pancake-sidebar-setup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.pancake-sidebar-setup-btn:hover::before {
  left: 100%;
}

.pancake-sidebar-setup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 97, 255, 0.4);
}

.pancake-sidebar-setup-btn:active {
  transform: translateY(0);
}

.pancake-sidebar-setup-btn-icon {
  font-size: 16px;
}

.pancake-sidebar-setup-btn-text {
  flex: 1;
  text-align: center;
}

.pancake-sidebar-setup-btn-arrow {
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.pancake-sidebar-setup-btn:hover .pancake-sidebar-setup-btn-arrow {
  transform: translateX(3px);
}

.pancake-sidebar-status-dot.available {
  background: #10b981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* License Section Specific */
.pancake-sidebar-license-desc {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pancake-sidebar-license-desc p {
  color: #1e40af;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.pancake-sidebar-license-status {
  margin-bottom: 20px;
}

.pancake-sidebar-license-input-group {
  display: flex;
  gap: 10px;
  align-items: end;
}

.pancake-sidebar-license-input-group .pancake-sidebar-input-wrapper {
  flex: 1;
}

.pancake-sidebar-license-check-btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 50px;
  display: flex;
  align-items: center;
}

.pancake-sidebar-license-check-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-sidebar-license-check-btn:disabled {
  background: #d1d5db !important;
  color: #374151 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Cookie Section Specific */
.pancake-sidebar-cookie-header-content h3 {
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.pancake-sidebar-cookie-desc {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pancake-sidebar-warning {
  background: linear-gradient(135deg, #dc2626cc, #ef4444cc, #f87171cc, #dc2626cc);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.pancake-sidebar-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(197, 63, 96, 0.103), transparent);
  animation: shimmer 3s infinite;
}

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

  100% {
    left: 100%;
  }
}

.pancake-sidebar-cookie-status {
  margin-bottom: 20px;
}

.pancake-sidebar-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.pancake-sidebar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pancake-sidebar-status-dot.current {
  background: #10b981;
}

.pancake-sidebar-status-dot.imported {
  background: #f59e0b;
}

.pancake-sidebar-status-dot.active {
  background: #10b981;
}

.pancake-sidebar-status-dot.none {
  background: #ef4444;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.pancake-sidebar-status-text {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.pancake-sidebar-cookie-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.pancake-sidebar-cookie-btn {
  padding: 12px 16px;
  background: white;
  color: #0061ff;
  border: 2px solid #0061ff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.pancake-sidebar-cookie-btn:hover {
  background: #0061ff;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 97, 255, 0.2);
}

/* Import Form */
.pancake-sidebar-import-form {
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 15px;
}

.pancake-sidebar-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Inter', monospace;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.section-icon .card-icon-img {
  display: block;
  filter: brightness(0) invert(1) contrast(1.05);
  image-rendering: -webkit-optimize-contrast;
}

.section-icon:hover {
  transform: translateY(-1px);
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow:
    0 8px 20px rgba(43, 124, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pancake-sidebar-textarea:focus {
  outline: none;
  border-color: #0061ff;
  box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}

.pancake-sidebar-textarea::placeholder {
  color: #9ca3af;
  font-size: 12px;
}

.pancake-sidebar-import-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.pancake-sidebar-btn-save {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pancake-sidebar-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-sidebar-btn-cancel {
  flex: 1;
  padding: 12px 20px;
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pancake-sidebar-btn-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Form */
.pancake-sidebar-form-group {
  margin-bottom: 25px;
}

.pancake-sidebar-label {
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.pancake-sidebar-input-wrapper {
  position: relative;
}

.pancake-sidebar-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.pancake-sidebar-input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.pancake-sidebar-input:focus {
  outline: none;
  border-color: #0061ff;
  box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}


/* Success Message */
.pancake-sidebar-success {
  padding: 12px;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #065f46;
  font-size: 13px;
  margin-bottom: 15px;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  20% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Error */
.pancake-sidebar-error {
  padding: 15px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 12px;
  color: #c00;
  font-size: 13px;
  margin-top: 15px;
  animation: shake 0.5s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* Scrollbar */
.pancake-sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.pancake-sidebar-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.pancake-sidebar-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  border-radius: 3px;
}

/* Responsive - simplified without squeeze effects */
@media (max-width: 1024px) {
  .pancake-sidebar {
    width: 350px;
  }

  .pancake-sidebar-content {
    width: 350px;
    right: -350px;
  }

  .pancake-sidebar-license-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .pancake-sidebar-license-check-btn {
    height: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pancake-sidebar {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: auto;
    pointer-events: none;
  }

  .pancake-sidebar-show {
    pointer-events: all;
  }

  .pancake-sidebar-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: all;
  }

  .pancake-sidebar-content {
    width: 90%;
    max-width: 400px;
    right: -90%;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  }

  .pancake-sidebar-show .pancake-sidebar-content {
    right: 0;
  }

  .pancake-sidebar-header {
    padding: 20px;
  }

  .pancake-sidebar-body {
    padding: 20px;
  }

  .pancake-sidebar-logo {
    width: 140px;
  }

  .pancake-sidebar-title {
    font-size: 18px;
  }

  .pancake-sidebar-subtitle {
    font-size: 12px;
  }

  .pancake-sidebar-cookie-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pancake-sidebar-license-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .pancake-sidebar-license-check-btn {
    height: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pancake-sidebar-content {
    width: 95%;
    right: -95%;
  }
}


/* Disclaimer Modal Styles */
.pancake-analyzer-disclaimer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000001;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pancake-analyzer-disclaimer-modal.pancake-analyzer-disclaimer-show {
  opacity: 1;
}

.pancake-analyzer-disclaimer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.pancake-analyzer-disclaimer-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  margin: 20px;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.pancake-analyzer-disclaimer-show .pancake-analyzer-disclaimer-content {
  transform: translateY(0);
}

.pancake-analyzer-disclaimer-header {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  padding: 25px 30px;
  text-align: center;
  position: relative;
}

.pancake-analyzer-disclaimer-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pancake-analyzer-disclaimer-body {
  padding: 30px;
  overflow-y: auto;
  max-height: 50vh;
}

.pancake-analyzer-disclaimer-body p {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.pancake-analyzer-disclaimer-list {
  margin: 20px 0;
}

.pancake-analyzer-disclaimer-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  background: #f9fafb;
}

.pancake-analyzer-disclaimer-number {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pancake-analyzer-disclaimer-text {
  color: #374151;
  font-size: 13px;
  line-height: 1.6;
}

.pancake-analyzer-disclaimer-text strong {
  color: #dc2626;
  font-weight: 600;
}

.pancake-analyzer-disclaimer-text em {
  color: #6b7280;
  font-style: italic;
}

.pancake-analyzer-disclaimer-agreement {
  background: linear-gradient(135deg, #fee, #fef2f2);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  margin: 20px 0;
}

.pancake-analyzer-disclaimer-agreement p {
  margin: 0;
  color: #7f1d1d;
  font-weight: 500;
  text-align: center;
}

.pancake-analyzer-disclaimer-checkbox {
  margin: 25px 0;
  padding: 20px;
  background: #f0f9ff;
  border-radius: 10px;
  border: 2px solid #e0f2fe;
}

.pancake-analyzer-disclaimer-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
}

.pancake-analyzer-disclaimer-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pancake-analyzer-disclaimer-checkmark {
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.pancake-analyzer-disclaimer-checkbox-input:checked+.pancake-analyzer-disclaimer-checkmark {
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  border-color: #0061ff;
}

.pancake-analyzer-disclaimer-checkbox-input:checked+.pancake-analyzer-disclaimer-checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pancake-analyzer-disclaimer-checkbox-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.pancake-analyzer-disclaimer-footer {
  padding: 20px 30px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.pancake-analyzer-disclaimer-btn-cancel,
.pancake-analyzer-disclaimer-btn-agree {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.pancake-analyzer-disclaimer-btn-cancel {
  background: white;
  color: #6b7280;
  border: 2px solid #d1d5db;
}

.pancake-analyzer-disclaimer-btn-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.pancake-analyzer-disclaimer-btn-agree {
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-analyzer-disclaimer-btn-agree:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 97, 255, 0.4);
}

.pancake-analyzer-disclaimer-btn-agree:disabled {
  background: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Mobile responsive for disclaimer modal */
@media (max-width: 768px) {
  .pancake-analyzer-disclaimer-content {
    width: 95%;
    max-height: 85vh;
    margin: 10px;
  }

  .pancake-analyzer-disclaimer-header {
    padding: 20px;
  }

  .pancake-analyzer-disclaimer-header h2 {
    font-size: 18px;
  }

  .pancake-analyzer-disclaimer-body {
    padding: 20px;
    max-height: 55vh;
  }

  .pancake-analyzer-disclaimer-item {
    padding: 12px;
  }

  .pancake-analyzer-disclaimer-number {
    width: 20px;
    height: 20px;
    font-size: 11px;
    margin-right: 12px;
  }

  .pancake-analyzer-disclaimer-text {
    font-size: 12px;
  }

  .pancake-analyzer-disclaimer-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .pancake-analyzer-disclaimer-btn-cancel,
  .pancake-analyzer-disclaimer-btn-agree {
    width: 100%;
    min-width: auto;
  }
}

/* Sidebar Container */
.pancake-analyzer-sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100%;
  z-index: 999999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  pointer-events: none;
  will-change: transform;
}

.pancake-analyzer-sidebar.pancake-analyzer-sidebar-show {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Overlay - transparent, no interference */
.pancake-analyzer-sidebar-overlay {
  display: none;
}

/* Sidebar Content - simple overlay */
.pancake-analyzer-sidebar-content {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: white;
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000000;
  pointer-events: all;
  border-left: 1px solid #e5e7eb;
  will-change: right;
}

.pancake-analyzer-sidebar-show .pancake-analyzer-sidebar-content {
  right: 0;
}

/* Header */
.pancake-analyzer-sidebar-header {
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  padding: 20px 24px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  min-height: 80px;

}

.pancake-analyzer-sidebar-logo {
  width: auto;
  height: 32px;
  margin-bottom: 15px;
}

.pancake-analyzer-sidebar-title {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pancake-analyzer-sidebar-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pancake-analyzer-sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.pancake-analyzer-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body */
.pancake-analyzer-sidebar-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

/* Collapsible Sections */
.pancake-analyzer-sidebar-collapsible-section {
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pancake-analyzer-sidebar-collapsible-section:hover {
  box-shadow: 0 2px 8px rgba(0, 97, 255, 0.1);
}

.pancake-analyzer-sidebar-section-header {
padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 140px 24px;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.pancake-analyzer-sidebar-section-header:hover {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.pancake-analyzer-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.pancake-analyzer-sidebar-section-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pancake-analyzer-sidebar-section-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #374151;
}

.pancake-analyzer-sidebar-status-text-mini {
  font-weight: 500;
}

.pancake-analyzer-sidebar-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.pancake-analyzer-sidebar-toggle-btn:hover {
  background: rgba(0, 97, 255, 0.1);
  color: #0061ff;
}

.pancake-analyzer-sidebar-chevron {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.pancake-analyzer-sidebar-section-content {
  padding: 20px;
  display: block;
}

/* Setup Section - Updated to match collapsible sections styling */
.pancake-analyzer-sidebar-setup-desc {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pancake-analyzer-sidebar-setup-desc p {
  color: #1e40af;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.pancake-analyzer-sidebar-setup-desc p:last-child {
  margin-bottom: 0;
}

.pancake-analyzer-sidebar-setup-desc strong {
  color: #0061ff;
  font-weight: 600;
}

.pancake-analyzer-sidebar-setup-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(0, 97, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.pancake-analyzer-sidebar-setup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.pancake-analyzer-sidebar-setup-btn:hover::before {
  left: 100%;
}

.pancake-analyzer-sidebar-setup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 97, 255, 0.4);
}

.pancake-analyzer-sidebar-setup-btn:active {
  transform: translateY(0);
}

.pancake-analyzer-sidebar-setup-btn-icon {
  font-size: 16px;
}

.pancake-analyzer-sidebar-setup-btn-text {
  flex: 1;
  text-align: center;
}

.pancake-analyzer-sidebar-setup-btn-arrow {
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.pancake-analyzer-sidebar-setup-btn:hover .pancake-analyzer-sidebar-setup-btn-arrow {
  transform: translateX(3px);
}

.pancake-analyzer-sidebar-status-dot.available {
  background: #10b981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* License Section Specific */
.pancake-analyzer-sidebar-license-desc {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pancake-analyzer-sidebar-license-desc p {
  color: #1e40af;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.pancake-analyzer-sidebar-license-status {
  margin-bottom: 20px;
}

.pancake-analyzer-sidebar-license-input-group {
  display: flex;
  gap: 10px;
  align-items: end;
}

.pancake-analyzer-sidebar-license-input-group .pancake-analyzer-sidebar-input-wrapper {
  flex: 1;
}

.pancake-analyzer-sidebar-license-check-btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 50px;
  display: flex;
  align-items: center;
}

.pancake-analyzer-sidebar-license-check-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-analyzer-sidebar-license-check-btn:disabled {
  background: #d1d5db !important;
  color: #374151 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Cookie Section Specific */
.pancake-analyzer-sidebar-cookie-header-content h3 {
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.pancake-analyzer-sidebar-cookie-desc {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pancake-analyzer-sidebar-warning {
  background: linear-gradient(135deg, #dc2626cc, #ef4444cc, #f87171cc, #dc2626cc);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.pancake-analyzer-sidebar-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(197, 63, 96, 0.103), transparent);
  animation: shimmer 3s infinite;
}

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

  100% {
    left: 100%;
  }
}

.pancake-analyzer-sidebar-cookie-status {
  margin-bottom: 20px;
}

.pancake-analyzer-sidebar-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.pancake-analyzer-sidebar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pancake-analyzer-sidebar-status-dot.current {
  background: #10b981;
}

.pancake-analyzer-sidebar-status-dot.imported {
  background: #f59e0b;
}

.pancake-analyzer-sidebar-status-dot.active {
  background: #10b981;
}

.pancake-analyzer-sidebar-status-dot.none {
  background: #ef4444;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.pancake-analyzer-sidebar-status-text {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.pancake-analyzer-sidebar-cookie-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.pancake-analyzer-sidebar-cookie-btn {
  padding: 12px 16px;
  background: white;
  color: #0061ff;
  border: 2px solid #0061ff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.pancake-analyzer-sidebar-cookie-btn:hover {
  background: #0061ff;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 97, 255, 0.2);
}

/* Import Form */
.pancake-analyzer-sidebar-import-form {
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 15px;
}

.pancake-analyzer-sidebar-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Inter', monospace;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.pancake-analyzer-sidebar-textarea:focus {
  outline: none;
  border-color: #0061ff;
  box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}

.pancake-analyzer-sidebar-textarea::placeholder {
  color: #9ca3af;
  font-size: 12px;
}

.pancake-analyzer-sidebar-import-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.pancake-analyzer-sidebar-btn-save {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pancake-analyzer-sidebar-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-analyzer-sidebar-btn-cancel {
  flex: 1;
  padding: 12px 20px;
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pancake-analyzer-sidebar-btn-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Form */
.pancake-analyzer-sidebar-form-group {
  margin-bottom: 25px;
}

.pancake-analyzer-sidebar-label {
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.pancake-analyzer-sidebar-input-wrapper {
  position: relative;
}

.pancake-analyzer-sidebar-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.pancake-analyzer-sidebar-input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.pancake-analyzer-sidebar-input:focus {
  outline: none;
  border-color: #0061ff;
  box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}

/* Buttons */
.pancake-analyzer-sidebar-btn-analyze,
.pancake-analyzer-sidebar-btn-auto {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pancake-analyzer-sidebar-btn-auto {
  margin-top: 10px;
  background: linear-gradient(135deg, #0061ff 0%, #0052d9 100%);
}

.pancake-analyzer-sidebar-btn-analyze:hover,
.pancake-analyzer-sidebar-btn-auto:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.pancake-analyzer-sidebar-btn-analyze:active,
.pancake-analyzer-sidebar-btn-auto:active {
  transform: translateY(0);
}

/* Disabled button styles */
.pancake-analyzer-sidebar-btn-analyze:disabled,
.pancake-analyzer-sidebar-btn-auto:disabled {
  background: #d1d5db !important;
  color: #374151 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.pancake-analyzer-sidebar-btn-analyze:disabled:hover,
.pancake-analyzer-sidebar-btn-auto:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Loading */
.pancake-analyzer-sidebar-loading {
  text-align: center;
}

.pancake-analyzer-sidebar-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  position: relative;
}

.pancake-analyzer-sidebar-spinner-circle {
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: #0061ff;
  border-right-color: #00c2ff;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.pancake-analyzer-sidebar-loading-text {
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.pancake-analyzer-sidebar-loading-subtext {
  color: #9ca3af;
  font-size: 13px;
}

.pancake-analyzer-sidebar-retry-info {
  color: #0061ff;
  font-size: 12px;
  margin-top: 10px;
}

.pancake-analyzer-sidebar-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

  0%,
  20% {
    content: '';
  }

  40% {
    content: '.';
  }

  60% {
    content: '..';
  }

  80%,
  100% {
    content: '...';
  }
}

/* Results */
.pancake-analyzer-sidebar-results {
  max-height: none;
  overflow-y: visible;
}

.pancake-analyzer-sidebar-result-section {
  margin-bottom: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.pancake-analyzer-sidebar-result-section:hover {
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.1);
  transform: translateY(-2px);
}

.pancake-analyzer-sidebar-result-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;

}

.pancake-analyzer-sidebar-result-title h4 {
  font-size: 16px;
  font-weight: 600;
  color: rgb(30, 41, 59);
  margin: 0px;
}

.pancake-analyzer-sidebar-result-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.pancake-analyzer-sidebar-result-content {
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
  text-align: justify;
}

.pancake-analyzer-sidebar-btn-reset {
  width: 100%;
  padding: 12px 20px;
  background: white;
  color: #0061ff;
  border: 2px solid #0061ff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.pancake-analyzer-sidebar-btn-reset:hover {
  background: #0061ff;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

/* Success Message */
.pancake-analyzer-sidebar-success {
  padding: 12px;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #065f46;
  font-size: 13px;
  margin-bottom: 15px;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  20% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Error */
.pancake-analyzer-sidebar-error {
  padding: 15px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 12px;
  color: #c00;
  font-size: 13px;
  margin-top: 15px;
  margin-bottom: 15px;
  animation: shake 0.5s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* Scrollbar */
.pancake-analyzer-sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.pancake-analyzer-sidebar-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.pancake-analyzer-sidebar-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0061ff, #00c2ff);
  border-radius: 3px;
}

/* Responsive - simplified without squeeze effects */
@media (max-width: 1024px) {
  .pancake-analyzer-sidebar {
    width: 350px;
  }

  .pancake-analyzer-sidebar-content {
    width: 350px;
    right: -350px;
  }

  .pancake-analyzer-sidebar-license-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .pancake-analyzer-sidebar-license-check-btn {
    height: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pancake-analyzer-sidebar {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: auto;
    pointer-events: none;
  }

  .pancake-analyzer-sidebar-show {
    pointer-events: all;
  }

  .pancake-analyzer-sidebar-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: all;
  }

  .pancake-analyzer-sidebar-content {
    width: 90%;
    max-width: 400px;
    right: -90%;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  }

  .pancake-analyzer-sidebar-show .pancake-analyzer-sidebar-content {
    right: 0;
  }

  .pancake-analyzer-sidebar-header {
    padding: 20px;
  }

  .pancake-analyzer-sidebar-body {
    padding: 20px;
  }

  .pancake-analyzer-sidebar-logo {
    width: 140px;
  }

  .pancake-analyzer-sidebar-title {
    font-size: 18px;
  }

  .pancake-analyzer-sidebar-subtitle {
    font-size: 12px;
  }

  .pancake-analyzer-sidebar-cookie-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pancake-analyzer-sidebar-license-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .pancake-analyzer-sidebar-license-check-btn {
    height: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pancake-analyzer-sidebar-content {
    width: 95%;
    right: -95%;
  }
}