/* Global Styles - Emerald Green Theme */

:root {
  --primary-emerald: #0d5c2e;
  --emerald-dark: #094522;
  --emerald-light: #16803d;
  --emerald-pale: #d1fae5;
  --text-dark: #1f2937;
  --text-light: #ffffff;
  --background: #f9fafb;
  --card-background: #ffffff;
  --border-color: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

/* Navigation */
nav {
  background-color: var(--primary-emerald);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background-color: var(--emerald-dark);
}

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

/* Headings */
h1 {
  font-size: 2.5rem;
  color: var(--primary-emerald);
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: 2rem;
  color: var(--emerald-dark);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Buttons */
button,
.btn {
  background-color: var(--primary-emerald);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

button:hover,
.btn:hover {
  background-color: var(--emerald-dark);
}

button:disabled {
  background-color: var(--border-color);
  cursor: not-allowed;
}

/* Forms */
input[type="text"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-emerald);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  color: var(--primary-emerald);
  text-decoration: none;
}

a:hover {
  color: var(--emerald-dark);
  text-decoration: underline;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Footer */
footer {
  background-color: var(--primary-emerald);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

/* Error/Success Messages */
.message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.message.success {
  background-color: var(--emerald-pale);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-light);
}

.message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--primary-emerald);
}
