:root {
  --ivory: #fffff0;
  --ivory-darker: #f8f8e8;
  --black: #000000;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #e0e0e0;
  --accent: #9c8c6c;
  --accent-light: #d1c3a8;
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
  --info: #2196f3;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--ivory);
  color: var(--dark-gray);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--black);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  margin: 0.75rem auto 0;
}

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

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

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

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

.btn-secondary {
  background-color: var(--dark-gray);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--medium-gray);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: white;
}

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

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 140, 108, 0.2);
  outline: none;
}

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

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  position: relative;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-warning {
  background-color: rgba(255, 152, 0, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.alert-info {
  background-color: rgba(33, 150, 243, 0.1);
  border: 1px solid var(--info);
  color: var(--info);
}

.alert .close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
}

/* Navigation */
.navbar {
  background-color: var(--black);
  color: var(--ivory);
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.navbar-logo a {
  color: var(--ivory);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-logo a:hover {
  color: var(--accent-light);
}

.navbar-menu-container {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin-right: 1.5rem;
}

.navbar-menu li {
  margin-left: 1.5rem;
}

.navbar-menu a {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.navbar-menu a i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.navbar-menu a:hover {
  color: var(--accent-light);
}

.navbar-user {
  color: var(--ivory);
  font-weight: 500;
}

.navbar-user i {
  margin-right: 0.5rem;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--ivory);
  background: transparent;
  border: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.navbar-toggle:hover {
  color: var(--accent-light);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .navbar {
    background-color: var(--black);
  }
  
  .navbar-container {
    padding: 0.8rem 1rem;
  }
  
  .navbar-toggle {
    display: block;
    z-index: 1001;
  }
  
  /* Add overlay when menu is active */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: -1;
    transition: background-color 0.3s ease, z-index 0s 0.3s;
  }
  
  body.menu-active::before {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: background-color 0.3s ease;
  }
  
  .navbar-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--black);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }
  
  .navbar-menu-container.active {
    right: 0;
  }
  
  .navbar-menu {
    flex-direction: column;
    margin-right: 0;
    width: 100%;
  }
  
  .navbar-menu li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-menu a {
    padding: 1rem 1.5rem;
    width: 100%;
    justify-content: flex-start;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  
  .navbar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
  }
  
  .navbar-menu a span {
    margin-left: 0.5rem;
  }
  
  .navbar-user {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* Small phones */
@media screen and (max-width: 480px) {
  .navbar-logo a {
    font-size: 1.2rem;
  }
  
  .navbar-menu-container {
    width: 85%;
  }
}
