.tool-card {
  height: 100%;
  transition: all 0.3s;
  border: 0;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  background-color: #fff;
  border-radius: 0.5rem;
}

.tool-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -2px rgb(0 0 0 / 0.05);
  transform: translateY(-0.25rem);
}

.tool-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1);
}

.tool-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  transition: color 0.2s;
}

.tool-card:hover .tool-title {
  color: #2563eb;
}

.tool-description {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Page layout styles */
.page-container {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #eff6ff, #fff, #f3e8ff);
}

.page-content {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.25rem;
  color: #4b5563;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  outline: none;
  border: 1px solid #d1d5db;
  background-color: #fff;
  height: 2.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.nav-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.nav-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.nav-button:hover {
  background-color: #f9fafb;
}

.nav-button-ghost:hover {
  background-color: #f3f4f6;
}

/* Card styles */
.card {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  color: #111827;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
}

.card-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.125;
  letter-spacing: -0.01em;
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

/* Form styles */
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

.form-input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #fff;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
}

.form-input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-textarea {
  display: flex;
  min-height: 5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #fff;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: #2563eb;
  color: #fff;
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-outline {
  border: 1px solid #d1d5db;
  background-color: #fff;
  height: 2.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

.btn-sm {
  height: 2.25rem;
  border-radius: 0.375rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Copy button styles */
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  background-color: #fff;
  height: 2.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Result display styles */
.result-display {
  background: linear-gradient(to right, #e0e7ff, #f0fdfa);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.result-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .result-title {
    font-size: 2.25rem;
  }
}

.result-description {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 1rem;
}

/* Grid layouts */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-card {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  color: #111827;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.stat-content {
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Utility classes */
.text-blue {
  color: #2563eb;
}
.text-green {
  color: #22c55e;
}
.text-purple {
  color: #a21caf;
}
.text-orange {
  color: #ea580c;
}
.text-pink {
  color: #db2777;
}
.text-red {
  color: #dc2626;
}
.text-emerald {
  color: #059669;
}
.text-yellow {
  color: #eab308;
}
.text-indigo {
  color: #4f46e5;
}
.text-teal {
  color: #14b8a6;
}

.bg-blue {
  background-color: #3b82f6;
}
.bg-green {
  background-color: #22c55e;
}
.bg-purple {
  background-color: #a21caf;
}
.bg-orange {
  background-color: #f59e42;
}
.bg-pink {
  background-color: #ec4899;
}
.bg-red {
  background-color: #ef4444;
}
.bg-emerald {
  background-color: #10b981;
}
.bg-yellow {
  background-color: #f59e42;
}
.bg-indigo {
  background-color: #6366f1;
}
.bg-teal {
  background-color: #14b8a6;
}

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

/* Show/hide animations */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

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