:root {
    /* Primary Brand Colors */
    --kalahari-orange: #D35400;     /* Burnt orange - main accent */
    --kalahari-sand: #E0C097;       /* Warm sand - backgrounds */
    --kalahari-plywood: #D2B48C;    /* Plywood beige - secondary neutral */
    
    /* Neutrals */
    --kalahari-charcoal: #333333;   /* Dark text/UI */
    --kalahari-stone: #999999;      /* Medium gray (optional) */
    --kalahari-cloud: #F5F5F5;      /* Light background (optional) */
    
    /* Accents */
    --kalahari-olive: #6B8E23;      /* Fresh/green accent */
    --kalahari-crimson: #990000;    /* Urgent red - CTAs */
  }
  
  /* Example usage classes (optional) */
  .bg-orange {
    background-color: var(--kalahari-orange);
  }
  .text-charcoal {
    color: var(--kalahari-charcoal);
  }
  .btn-primary {
    background-color: var(--kalahari-orange);
    color: #ffff;
  }
  .btn-danger {
    background-color: var(--kalahari-crimson);
  }
  html, body {
    height: 100%;
  }
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--kalahari-charcoal);
    color: #ffff;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
  }
  #main-content {
    flex: 1 0 auto;
  }
  .top-bar {
    background: var(--kalahari-orange);
    padding: 6px 0;
    text-align: center;
  }
  .top-bar a {
    color: #ffff;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
  }
  .modal-bg {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
  }
  .modal-bg.active {
    display: flex;
  }
  .modal {
    background: var(--kalahari-charcoal);
    border-radius: 10px;
    padding: 32px 32px 24px 32px;
    max-width: 420px;
    width: 95vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
  }
  .modal .close-x {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    color: #ffff;
    cursor: pointer;
  }
  .modal h2 {
    margin-top: 0;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
  }
  .modal p {
    text-align: center;
    margin-bottom: 24px;
  }
  .modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .modal input, .modal select {
    padding: 12px;
    border-radius: 4px;
    border: none;
  }
  .modal input, .modal select {
    background: #ffff;
    color: var(--kalahari-charcoal);
  }
  .modal button[type=submit] {
    background: var(--kalahari-orange);
    color: #ffff;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 2px;
    padding: 12px 0;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .modal button[type=submit]:hover {
    background: #b34700;
  }
  .modal .success-message {
    color: var(--kalahari-orange);
    text-align: center;
    font-size: 1.1rem;
    margin-top: 16px;
  }
  @media (max-width: 500px) {
    .modal {
      padding: 16px 4vw 16px 4vw;
    }
  }
  table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
  }
  th, td {
    padding: 8px;
    border: 1px solid #ccc;
  }
  th a {
    color: var(--kalahari-orange);
    text-decoration: none;
  }
  th a:hover {
    text-decoration: underline;
  }
  form {
    margin-bottom: 15px;
  }
  canvas {
    margin-top: 30px;
  }
  .footer {
    flex-shrink: 0;
    width: 100%;
    background: var(--kalahari-stone);
    color: #ffff;
    text-align: center;
    padding: 5px 0 5px 0;
    font-size: 1.20em;
    letter-spacing: 0.5px;
    font-weight: bold;
  }
  .main-logo {
    max-width:340px; 
    margin-bottom:32px; 
  }
  .content {
    padding: 20px;
    display: contents;
  }
  .d_content {
    padding: 20px;
  }
  .d_toolbar {
    background: var(--kalahari-orange);
    text-align: center;
  }
  .d_toolbar a {
    color: #ffff;
    font-weight: bold;
    font-family: 'Montserrat', Arial, sans-serif;
    text-decoration: none;
  }
  .menu-logo {
    float: left;
  }
  .menu-logo img {
    max-width: 200px;
    padding: 10px;
  }
  .chart-d {
    display: inline;
    max-height: 400px;
    padding: 30px;
  }
  .cform {
    border: var(--kalahari-olive) 5px solid;
    display: inline-block;
    max-width: 300px;
    padding: 30px;
    text-align: center;
    left: calc(40%);
    position: relative;
    margin-top: 50px;
  }
  h1 {
    color:var(--kalahari-orange); 
    font-size:2.2rem; 
  }
  .h_msg {
    background-color: #00000050;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-top: 30px;
  }