@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

/* Common styles for SEO and Dev utility pages */

.tool-container {
  min-height: calc(100vh - 180px);
}

/* Glass card layout adjustments */
.tool-input-card {
  transition: border-color 0.3s;
}

.tool-output-card {
  position: relative;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed var(--border-color);
}

.dark .tool-output-card {
  background: rgba(255, 255, 255, 0.02);
}

/* Codeblock box styling */
.codeblock-container {
  position: relative;
  background: #0F172A;
  color: #E2E8F0;
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.codeblock-content {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Copy notification animation toast */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Loading animations */
.scanner-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00D4FF 50%, transparent 100%);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: scan 2s linear infinite;
  z-index: 5;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Results panel animation */
.results-enter {
  opacity: 0;
  transform: translateY(15px);
  animation: slideUp 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* File Upload drag and drop box styles */
.file-drop-zone {
  border: 2px dashed rgba(107, 70, 193, 0.3);
  background: rgba(107, 70, 193, 0.02);
  transition: all 0.3s;
}

.file-drop-zone.dragover {
  border-color: #00D4FF;
  background: rgba(0, 212, 255, 0.08);
}

/* Mobile Responsive Tool Layout Adjustments */
@media (max-width: 768px) {
  .tool-container {
    min-height: auto;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .file-drop-zone {
    padding: 1.25rem 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .copy-toast {
    width: 90%;
    text-align: center;
    font-size: 13px;
    padding: 0.625rem 1rem;
  }

  /* Force vertical flex stacking for mobile tool action bars */
  .mobile-stack {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .mobile-stack > * {
    width: 100% !important;
  }

  /* Mobile scroll containers for wide matrices, charts, and tables */
  .mobile-overflow-scroll,
  .overflow-table,
  .matrix-scroll-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Universal touch tab rows */
  .format-tabs-wrapper,
  .tool-tabs-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .format-tab,
  .tool-tab-btn {
    flex: 1 1 auto !important;
    min-width: 70px !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 12px !important;
  }

  /* Tool action inputs & buttons on mobile */
  .tool-input-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.625rem !important;
    width: 100% !important;
  }

  .tool-input-row input {
    width: 100% !important;
  }

  .tool-input-row button {
    width: 100% !important;
  }
}

