/* Common styles for all pages */
:root {
  --primary: #064E3B;
  --primary-light: #D1FAE5;
  --secondary: #1D4ED8;
  --accent: #F97316;
  --dark: #1F2937;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-100);
  color: var(--gray-700);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.site-header {
  background: var(--dark);
  color: white;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.nav-item {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
}

.nav-item.active {
  background: var(--accent);
  font-weight: 500;
}

/* Forms */
label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

input, 
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-300);
  background: white;
  font-size: 1rem;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Common Components */
.page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
}

.panel {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.hidden {
  display: none;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.375rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  border: none;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  filter: brightness(1.1);
}

.button-outline {
  border: 1px solid var(--gray-300);
  background: transparent;
  color: var(--text);
}

.button-outline:hover {
  background: var(--gray-100);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tool-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-4px);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gray-300);
}

.footer-section p {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-section {
    text-align: center;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav {
    display: none;
  }
}