/* DEFAULTS */
* {
font-family: 'Titillium Web';
}

.form-errors {
    color: #cc0000;
    background-color: #fff0f0;
    border: 1px solid #cc0000;
    padding: 8px 16px;
    margin-bottom: 12px;
    list-style: none;
}

/* ICONS */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  padding-left: 10px;
  padding-top: 5px;
  vertical-align: sub;
  flex-shrink: 0;
}

.aside-icon-header {
  display: inline-block;
  width: 25px;
  height: 25px;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.icon svg,
.aside-icon-header svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* INPUT */
input[type=text], input[type=password], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-weight: bold;
}

input[type=submit] {
  width: 100%;
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.grid-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 50px 1fr 50px;
  grid-template-areas:
    "sidenav header"
    "sidenav main"
    "sidenav footer";
  height: 100vh;
}

/* HEADER FOOTER */
.header, .footer {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: #474B4F;
}

.main {
  grid-area: main;
  background-color: #f0f0f0;
  padding: 20px;
}

.main h1 {
  margin: 0 0 20px 0;
  font-size: 1.4em;
  color: #333;
}

.title {
  display: inline-flex;
  color: #86C232;
  -webkit-text-fill-color: #86C232;
  background: #000000;
  height: 50px;
}

.title p {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* NAVIGATION */
.sidenav {
    display: flex;
    flex-direction: column;
    grid-area: sidenav;
    background-color: #222629;
}

.sidenav__list-item a {
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    text-decoration: none;
    color: #86C232;
    font-weight: bold;
}

.sidenav__list {
    padding: 0px;
    margin: 0px;
    list-style-type: none;
}

.sidenav__list-item {
    display: inline-flex;
    width:100%;
    border-bottom: 1px solid #6B6E70;
}

.sidenav__list-item:hover {
    background-color: #86C232;
    cursor: pointer;
}

.sidenav__list-item:hover a {
    color: #ffffff;
}

.sidenav__list-item:active {
    background-color: #6B6E70;
    cursor: pointer;
}

.sidenav__list-item--active {
    background-color: #86C232;
}

.sidenav__list-item--active a {
    color: #ffffff;
}

/* HEADER LINKS */
.topnav {
    display: flex;
    flex-direction: column;
    margin: 0;
    margin-left: auto;
    text-align: right;
    padding-top: 10px;
}

.login {
    display: inline;
}

.login a {
    text-decoration: none;
    color: #86C232;
    font-weight: bold;
}

/* RESPONSIVE GRID CARDS */
.main-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  grid-auto-rows: auto;
  grid-gap: 20px;
  margin: 0 0 20px 0;
}

.main-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.card--spaced {
    margin-bottom: 20px;
}

.card-chart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    grid-column: 1 / -1;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 16px;
    -webkit-text-fill-color: #ffffff;
    background-color: #474B4F;
    box-sizing: border-box;
}

.card-bottom {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    -webkit-text-fill-color: #ffffff;
    background-color: #9C9C9C;
    display: flex;
}

.card-content {
    width: calc(100% - 20px);
    overflow: hidden;
    margin-left: 10px;
    margin-right: 10px;
}

.card-text {
   margin: 0px;
   padding-left: 10px;
}

.card-chart-content .chart {
   height: 350px;
   width: 100%;
}

.gauge {
   height: 100%;
   width: 100%;
}

/* SLIDERS */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 4px;
  line-height: 1;
}

/* SIDENAV OVERLAY */
.sidenav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidenav-overlay.visible {
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 50px 1fr 50px;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }

  .sidenav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
  }

  .sidenav.open {
    display: flex;
  }

  .main-cards {
    grid-template-columns: 1fr;
  }

  .main-overview {
    grid-template-columns: 1fr;
  }
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* STATUS DOTS */
.status-dot {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-active   { background-color: #4CAF50; }
.status-dot-inactive { background-color: #cc0000; }
.status-dot-unknown  { background-color: #9C9C9C; }

/* NARROW CARD */
.card--narrow {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* FORM GROUPS */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 0.875em;
    color: #333;
    margin-bottom: 6px;
}

.form-group input[type=number] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=date]:focus,
input[type=time]:focus,
select:focus {
    outline: none;
    border-color: #86C232;
    box-shadow: 0 0 0 2px rgba(134, 194, 50, 0.2);
}

.form-submit {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.form-submit input[type=submit] {
    width: auto;
    padding: 10px 28px;
    margin: 0;
}

/* STAT CARDS */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: bold;
  color: #333;
  font-size: 0.875em;
}

.stat-value {
  color: #555;
  font-size: 0.875em;
  text-align: right;
}
