:root {
  --primary-color: #008489;
  /* Airbnb Teal/Green */
  --secondary-color: #006C70;
  /* Darker Teal */
  --text-dark: #484848;
  --text-medium: #767676;
  --text-light: #B0B0B0;
  --bg-color: #FFFFFF;
  --bg-secondary: #F7F7F7;
  --border-color: #DDDDDD;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  --font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
  /* Space for fixed bottom elements on mobile if needed */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

/* ==================== Layout ==================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Navbar ==================== */
.navbar {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* Desktop Menu */
.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar-menu a {
  color: var(--text-dark);
}

.navbar-menu a:hover {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary-color);
  /* Gradient optional: linear-gradient(to right, #E61E4D, #D80565) */
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.05);
  /* Simpler hover effect */
  background: #E00B41;
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

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

.btn-danger {
  background: white;
  color: #D93025;
  border: 1px solid #D93025;
}

.btn-danger:hover {
  background: #fee;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ==================== Cards ==================== */
.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  /* Flat design: No shadow by default, or very subtle */
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

.card-header {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

/* ==================== Forms ==================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  /* Larger touch target */
  font-size: 1rem;
  border: 1px solid var(--text-light);
  border-radius: var(--radius-sm);
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--text-dark);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

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

/* ==================== Tables ==================== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1rem;
}

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

.table th {
  font-weight: 600;
  color: var(--text-medium);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: white;
  /* Sticky header support */
  position: sticky;
  top: 0;
}

.table tr:last-child td {
  border-bottom: none;
}

/* ==================== Utilities ==================== */
.alert {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.alert-warning {
  background-color: #FFF8F6;
  color: #C13515;
  border: 1px solid #FFE0D9;
}

.alert-success {
  background-color: #F0FAF9;
  color: var(--secondary-color);
  border: 1px solid #C4E9E6;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-2 {
  margin-bottom: 16px;
}

.text-right {
  text-align: right;
}

/* ==================== Modal ==================== */
.modal {
  /* Overlay */
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(2px);
}

/* Modal Content override handled in inline styles for now, but generally card styles apply */

/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Navbar stack */
  .navbar .container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .navbar-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .navbar-menu a {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    /* Pill shape links */
    font-size: 0.9rem;
  }

  /* Full width buttons */
  .btn {
    width: 100%;
    margin-bottom: 8px;
    /* Stack buttons */
  }

  /* Form inputs */
  .form-control {
    font-size: 16px;
    /* Prevent IOS zoom */
  }

  /* Table scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide certain table columns if needed or stack cards */
  /* For now, just ensuring container padding is minimal */

  h1 {
    font-size: 1.75rem;
  }
}