:root {
  --primary-color: #5c3a21; /* Warm Brown/Sepia */
  --secondary-color: #d4af37; /* Gold */
  --bg-color: #f9f6f0; /* Cream */
  --text-color: #2c2c2c; /* Charcoal */
  --light-gray: #e0e0e0;
  --success: #2e7d32;
  --danger: #c62828;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --heading-font: 'Merriweather', serif; /* A bit more classic for headings */
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.navbar-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #4a2e1a;
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #c49f2b;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

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

/* Flashes */
.alerts {
  margin-bottom: 2rem;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success { background-color: #e8f5e9; color: var(--success); }
.alert-danger { background-color: #ffebee; color: var(--danger); }
.alert-warning { background-color: #fff3e0; color: #e65100; }
.alert-info { background-color: #e3f2fd; color: #0d47a1; }

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Cards */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.table th, .table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.table th {
  background-color: #f1ebd9; /* Light warm tint */
  font-weight: 600;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .table {
    display: block;
    overflow-x: auto;
  }
}
