:root {
  --bg: #f9fafb;
  --panel-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  /* Diff specific colors can stay here if they might be used elsewhere, or in local CSS */
  --diff-add-bg: #e6ffed;
  --diff-add-text: #22863a;
  --diff-del-bg: #ffeef0;
  --diff-del-text: #cb2431;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.c {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.global-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 4rem;
}

.global-header .c {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.global-header .logo {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.global-header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.global-header nav a {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.1s;
}

.global-header nav a:hover {
  color: var(--primary);
}


button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:not(:disabled):hover {
  opacity: 0.85;
}

button:not(:disabled):active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.global-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Common Header Styles for all pages */
header {
  text-align: center;
  margin-bottom: 4rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

header p {
  color: var(--text-muted);
}

/* Tool Grid and Cards (Top Page) */
.tool-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tool-card {
  display: block;
  padding: 1.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.tool-card h2 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}
