/* assets/tool-theme.css */

/* tool-theme.css */

:root {
  --brand-primary: #4f46e5;      /* indigo-600 */
  --brand-primary-dark: #4338ca; /* indigo-700 */
  --brand-primary-light: #eef2ff; /* indigo-50 */
  --brand-border: #c7d2fe;       /* indigo-200 */
  --brand-text: #111827;         /* gray-900 */
  --brand-muted: #6b7280;        /* gray-500 */
  --bg-gray: #f9fafb;            /* gray-50 */
  --bg-white: #ffffff;
}

/* Standard tool container */
body.tool-page {
  background-color: var(--bg-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tool-container {
  padding: 1.5rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .tool-container {
    padding: 2.5rem;
  }
}

/* Header styling */
.tool-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-text);
  border-bottom: 4px solid var(--brand-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .tool-header h1 {
    font-size: 2.25rem;
  }
}

.tool-header p {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--brand-muted);
}

/* Main panel with gray/colored background */
.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--brand-primary-light);
  border-radius: 0.5rem;
  border: 1px solid var(--brand-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
}

@media (min-width: 1024px) {
  .tool-panel {
    flex-direction: row;
  }
}

.tool-panel-section {
  flex: 1;
}

/* Input section */
.tool-inputs h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

/* Output section */
.tool-output {
  flex: 1;
  background-color: var(--bg-white);
  border-radius: 0.375rem;
  border: 1px solid var(--brand-border);
  padding: 1rem;
}

.tool-output h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 0.75rem;
}

/* Context/info section */
.tool-context {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: var(--bg-gray);
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb; /* gray-200 */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
}

.tool-context h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 1rem;
}

.tool-context p {
  color: var(--brand-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Buttons */
.tool-primary {
  background-color: var(--brand-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s;
}

.tool-primary:hover {
  background-color: var(--brand-primary-dark);
}

.tool-secondary {
  background-color: var(--bg-white);
  color: var(--brand-text);
  border: 1px solid #d1d5db; /* gray-300 */
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}

.tool-secondary:hover {
  background-color: #f3f4f6; /* gray-100 */
}

/* Links */
.tool-link {
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: none;
}

.tool-link:hover {
  text-decoration: underline;
}