/* ms2.css - Alternative Compact Theme */

.wrap {
  display: inline-block;
  -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  margin-top: 1px;
}

/* Accent decorative strip */
.decor {
  background: #1e3a8a; /* Deep Indigo / Navy accent */
  background: -webkit-linear-gradient(left, #3b82f6 50%, #1e3a8a 50%);
  background: -moz-linear-gradient(left, #3b82f6 50%, #1e3a8a 50%);
  background: -o-linear-gradient(left, #3b82f6 50%, #1e3a8a 50%);
  background: linear-gradient(to right, #60a5fa 50%, #1d4ed8 50%);
  background-size: 100% 2px;
  padding: 1px;
  display: block;
}

a {
  text-decoration: none;
  color: #e2e8f0;
  display: block;
}

ul {
  list-style: none;
  position: relative;
  text-align: left;
}

li {
  float: left;
}

/* clear'n floats */
ul:after {
  clear: both;
}

ul:before,
ul:after {
  content: " ";
  display: table;
}

nav {
  position: relative;
  background: #0f172a; /* Slate Dark Background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
  letter-spacing: 0.5px;
  -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* =========================================================
   PRIMARY TOP MENU (Ultra-compact, single line, slate/blue)
   ========================================================= */
ul.primary {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap !important; /* Forces all items onto one line */
  align-items: center;
  margin: 0;
  padding: 0 4px;
  white-space: nowrap;          /* Keeps text on 1 line */
}

ul.primary li {
  float: none;                  /* Overrides general float for flex layout */
  white-space: nowrap;
}

ul.primary li a {
  display: block;
  padding: 3px 6px;             /* Compact padding */
  border-right: 1px solid #334155; /* Subtle divider */
  font-size: 20px;           /*  Smaller, crisp typography */
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

ul.primary li:last-child a {
  border-right: none;
}

ul.primary li a:hover {
  color: #ffffff;
  background: #1e293b;
}

/* =========================================================
   SUBMENU DROPDOWNS
   ========================================================= */
ul.sub {
  position: absolute;
  z-index: 200;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  width: auto;
  min-width: 160px;
  display: none;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 0;
}

ul.sub li {
  float: none;
  margin: 0;
}

ul.sub li a {
  border-bottom: 1px solid #f1f5f9;
  border-right: none;
  color: #334155;
  padding: 4px 10px;
  font-size: 20px;
  white-space: nowrap;
}

ul.sub li:last-child a {
  border-bottom: none;
}

ul.sub li a:hover {
  color: #1d4ed8;
  background: #f1f5f9;
}

/* sub display */
ul.primary li:hover ul {
  display: block;
}

/* keeps the active parent tab styled */
ul.primary li:hover > a {
  background: #2563eb;
  color: #ffffff;
} 

@media only screen and (max-width: 600px) {
  .decor {
    padding: 2px;
  }
  
  .wrap {
    width: 100%;
    margin-top: 0px;
  }
  
  li {
    float: none;
  }
  
  ul.primary li:hover a {
    background: none;
    color: #94a3b8;
  }

  ul.primary li:hover ul {
    display: block;
    background: #0f172a;
    color: #fff;
  }
  
  ul.sub {
    display: block;  
    position: static;
    box-shadow: none;
    width: 100%;
    border: none;
  }
  
  ul.sub li a {
    background: #0f172a;
    border: none;
    color: #94a3b8;
  }
  
  ul.sub li a:hover {
    color: #38bdf8;
    background: none;
  }
}
