/* Hobby Tool Value Maximizer Styles */
* { box-sizing: border-box; }
body {
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
 line-height: 1.6;
 color: #333;
 background-color: #fafafa;
 margin: 0;
}
.container {
 max-width: 960px;
 margin: 0 auto;
 padding: 0 1rem;
}
header {
 background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
 color: white;
 padding: 1.5rem 0;
 border-bottom: 3px solid #e74c3c;
}
header h1 {
 margin: 0 0 0.25rem;
 font-size: 1.75rem;
 font-weight: 600;
}
header .tagline {
 margin: 0;
 opacity: 0.9;
 font-size: 1rem;
}
nav a {
 color: #ecf0f1;
 text-decoration: none;
 margin: 0 0.75rem;
 font-size: 0.9rem;
}
nav a:hover { text-decoration: underline; }
nav a[aria-current] { border-bottom: 2px solid #e74c3c; padding-bottom: 0.25rem; }

main {
 padding: 1.5rem 0;
}

section.intro {
 background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
 margin-bottom: 2rem;
 border-left: 4px solid #3498db;
}
section.intro h2 {
 color: #2c3e50;
 margin-top: 0;
}
section.intro p {
 font-size: 1.1rem;
}
section .why-help ul {
 margin: 0.5rem 0 0;
 padding-left: 1.5rem;
}
section .why-help li {
 margin-bottom: 0.375rem;
}
section .why-help strong {
 color: #e74c3c;
}

section.tool-collection {
 background: white;
 border-radius: 8px;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
 padding: 1.5rem;
 margin-bottom: 2rem;
}
section.tool-collection h2 {
 margin-top: 0;
 color: #2c3e50;
}
.controls {
 display: flex;
 gap: 0.75rem;
 margin-bottom: 1rem;
}
.primary-btn, .secondary-btn {
 padding: 0.75rem 1.5rem;
 border-radius: 4px;
 border: none;
 cursor: pointer;
 font-size: 1rem;
 font-weight: 500;
}
.primary-btn { background: #3498db; color: white; }
.primary-btn:hover { background: #2980b9; }
.secondary-btn { background: #95a5a6; color: white; }
.secondary-btn:hover { background: #7f8c8d; }

.table-container {
 overflow-x: auto;
}
#toolTable {
 width: 100%;
 border-collapse: collapse;
}
#toolTable th, #toolTable td {
 padding: 0.75rem;
 text-align: left;
 border-bottom: 1px solid #eee;
}
#toolTable th {
 background: #f8f9fa;
 font-weight: 600;
}
#toolTable tr:hover { background: #f8f9fa; }
#toolTable tr.overdue { background: #fff3cd; }
#toolTable tr.sample-row { background: #fff; }

.empty-state {
 text-align: center;
 padding: 2rem;
 color: #6c757d;
}
.empty-state.hidden { display: none; }

#addFormSection {
 background: #f8f9fa;
 border-radius: 8px;
 padding: 1.5rem;
 margin-bottom: 2rem;
}
#addFormSection h2 { margin-top: 0; }
.form-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1rem;
}
.form-group {
 display: flex;
 flex-direction: column;
}
.form-group.full-width {
 grid-template-columns: 1fr;
}
.form-group label {
 margin-bottom: 0.25rem;
 font-weight: 500;
}
.form-group input, .form-group select {
 padding: 0.5rem;
 border: 1px solid #ddd;
 border-radius: 4px;
 font-size: 1rem;
}
.form-actions {
 display: flex;
 gap: 0.75rem;
 margin-top: 1rem;
}

section.reference {
 background: white;
 border-radius: 8px;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
 padding: 1.5rem;
 margin-bottom: 2rem;
}
section.reference h2 { margin-top: 0; }
.reference-content {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1.5rem;
}
.ref-section h3 { margin-top: 0; font-size: 1.1rem; color: #2c3e50; }
ref-section dl { margin: 0; }
ref-section dt { font-weight: 600; margin-top: 0.5rem; }
ref-section dd { margin: 0 0 0.5rem 0;
}
ref-section ul { margin: 0; padding-left: 1.25rem; }
ref-section li { margin-bottom: 0.25rem; }

section.tips {
 background: #fff3cd;
 border-radius: 8px;
 padding: 1.5rem;
 border-left: 4px solid #ffc107;
}
section.tips h2 { margin-top: 0; color: #856404; }
section.tips ul {
 margin: 0.5rem 0 0;
 padding-left: 1.5rem;
}
section.tips li {
 margin-bottom: 0.375rem;
}

.ad-placeholder {
 text-align: center;
 padding: 1rem;
 margin: 1rem 0;
}

footer {
 background: #2c3e50;
 color: #bdc3c7;
 padding: 1rem 0;
 font-size: 0.9rem;
}
footer a {
 color: #3498db;
}
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
 .form-grid { grid-template-columns: 1fr; }
 .controls { flex-direction: column; }
 .primary-btn, .secondary-btn { width: 100%; }
 .container { padding: 0 0.5rem; }
 header h1 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
 #toolTable th, #toolTable td { padding: 0.5rem; font-size: 0.85rem; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
