:root {
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --primary-color: #004080;
    --accent-color: #00bfa5;
    --header-height: 70px;
    --footer-height: 30px;
    --footer-bg: var(--primary-brand-dark);
    --footer-text-color: white;
    --footer-link-color: var(--accent-brand-green);
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #F44336;
    --text-color: #333333; /* Dark grey for general body text, ensures good readability */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --surface-color-dark: #777a7c;
    --border-color: #e0e0e0;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --radius: 8px;

    /* Brand Colors (from logo) */
    --primary-brand-dark: #81b03f; /* 65696cA strong, stable dark grey for primary elements like headers, footers, or important text */
    --secondary-brand-red: #d62c35; /* A vibrant red for accents, call-to-action buttons, or warnings */
    --accent-brand-green: #9fce5b; /* A fresh green for success messages, positive indicators, or secondary calls to action */
    --highlight-brand-orange: #f79031; /* A warm orange for highlights, focus elements, or complementary accents */
    --highlight-brand-green: #9fce5b; /* A fresh green for highlights, focus elements, or complementary accents */
    --highlight-brand-gray: #808080; /* A fresh green for highlights, focus elements, or complementary accents */

    /* Dashboards Page */
    --report-cube-size: 12vh;
    --active-background-color: #9fce5b;
    --cube-active-color: #f8f8f8;
    --default-section-border: 1px solid #e1e5eb;

    --inactive-backgroud-color: #b2b2b2;
    --cube-inactive-color: #333333;
    --inactive-cube-order: 9; /* the max number to keep inactive cubes at last */
  }

.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1500;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
.flash {
    background-color: var(--surface-color);
    color: var(--text-color);
    font-family: var(--font-family);
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 12px 18px;
    margin-bottom: 10px;
    min-width: 250px;
    border-radius: 6px;
    position: relative;
    animation: slideIn 0.5s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Category-based color variants */
.flash.success     { border-left-color: var(--success-color); }
.flash.warning     { border-left-color: var(--warning-color); }
.flash.error       { border-left-color: var(--error-color); }

  /* Dismiss button */
.flash-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 10px;
  }
  
  /* Hide message animation */
.flash.hide {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease-in;
  }

.text-to-upper {
    text-transform: uppercase;
}
  
  /* Slide-in animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
  }
  
  /* 📱 Responsive tweaks */
@media (max-width: 600px) {
  .flash {
    min-width: 90%;
    right: 5%;
    font-size: 0.9em;
  }
  }

@media screen and (max-width: 768px) {
    .nav-menu {
      flex-direction: column;
      gap: 10px;
      background-color: var(--background-color);
      padding: 10px;
    }
  
    .navbar {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .logo img {
      height: 30px;
    }
  
    footer {
      flex-direction: column;
      height: auto;
      text-align: center;
    }
  
    footer a {
      float: none;
      margin: 5px 0 0;
    }
  }