/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f4f6f9;
  color: #334155;
  display: flex;
  min-height: 100vh;
}

.dashboard {
  display: flex;
  width: 100%;
}

/* Barra lateral */
.tools-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  height: 100vh;
}

.tool-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #475569;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tool-link-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tool-link-btn.active {
  background: #e2e8f0;
  color: #2563eb;
  font-weight: 600;
}

.tool-icon {
  font-size: 1.25rem;
}

/* Contenido Principal */
.main-content {
  margin-left: 260px; /* Espacio para que no lo tape la barra fija */
  flex: 1;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tool-card {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h2 {
  margin-bottom: 20px;
  color: #0f172a;
}

/* Estilos comunes para componentes de las herramientas */
button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  margin-top: 15px;
}

button:hover {
  background: #1d4ed8;
}

.result-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 20px;
  word-break: break-all;
}