/* ModifyKit Custom Styles */

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* Hide scrollbar for Chrome/Safari */
textarea::-webkit-scrollbar {
  width: 6px;
}
textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  dark-background: #374151;
}
textarea::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  dark-background: #4b5563;
}
textarea::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
  dark-background: #6b7583;
}

/* Tool card hover effect */
.tool-card {
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Ad container */
.ad-container {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px dashed #e5e7eb;
}

/* Tool container constraint */
.tool-container {
  max-width: 800px;
  margin: 0 auto;
}

/* File input styling */
input[type="file"] {
  padding: 0.5rem;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
}

/* Button transitions */
button {
  transition: background-color 0.2s ease, transform 0.1s ease;
}
button:active {
  transform: scale(0.98);
}

/* Character grid for emoji/special char tool */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  padding: 8px 0;
}

/* Individual character button - boxed style, auto-sizing */
.char-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 56px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #111827;
  padding: 6px;
  box-sizing: border-box;
}
.char-btn.dark\:bg-gray-700 {
  background: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
}
.char-btn:hover {
  background: #f3f4f6;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.char-btn:hover.dark\:bg-gray-700 {
  background: #4b5563;
}
.char-btn:active {
  transform: scale(0.95);
}
.char-btn.copied {
  background: #10b981;
  color: white;
  border-color: #10b981;
}
.char-btn .char-display {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 2px;
}
.char-btn .char-code {
  font-size: 0.6rem;
  color: #9ca3af;
}
