* {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal; }

body {
  background: #f4f6f9;
  margin: 0; }

a {
  text-decoration: none; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #007bff;
  color: white;
  padding: 15px 20px;
  font-size: 20px; }

.header {
  flex-direction: column;
  padding: 10px;
  gap: 10px; }

.header-title {
  font-weight: bold; }

/* container tombol */
.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  /* biar turun kalau sempit */ }

.header-actions {
  justify-content: center;
  width: 100%; }

/* tombol */
.btn-setting {
  padding: 6px 12px;
  background: white;
  color: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s; }

.btn-setting:hover {
  background: #e6e6e6;
  transform: translateY(-1px); }

/* tombol khusus setting */
.btn-gear {
  background: #ffc107;
  color: #333; }

.setting-panel {
  display: none;
  margin: 20px;
  padding: 25px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef; }

.mpc-title {
  padding: 10px 20px;
  font-size: 20px;
  font-weight: bold;
  color: #333; }

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  padding: 0 20px 20px 20px; }

.card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  cursor: pointer; }

.card:hover {
  transform: scale(1.05); }

.card-type-0 {
  border-left: 5px solid #6c757d; }

.card-type-1 {
  border-left: 5px solid #007bff; }

.card-type-2 {
  border-left: 5px solid #28a745; }

.card-type-3 {
  border-left: 5px solid #fd7e14; }

.sensor {
  font-size: 16px;
  font-weight: bold;
  color: #333; }

.value {
  font-size: 24px;
  color: #007bff;
  margin-top: 8px; }

.temp {
  margin-top: 5px;
  color: #888; }

.time {
  margin-top: 6px;
  font-size: 11px;
  color: #aaa; }

button {
  padding: 8px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer; }

button:hover {
  background: #0056b3; }

/* ================= MODAL ================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999; }

.modal-box {
  background: #fff;
  width: 350px;
  margin: 100px auto;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from {
    transform: translateY(-10px);
    opacity: 0; }
  to {
    transform: translateY(0);
    opacity: 1; } }
/* ================= INPUT ================= */
.input-group {
  margin-top: 12px; }

.input-group label {
  font-size: 13px;
  color: #555;
  display: block;
  margin-bottom: 4px; }

.input-group input {
  width: 90%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s; }

.input-group input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15); }

/* ================= BUTTON ================= */
.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px; }

.btn-primary {
  background: #007bff;
  color: white;
  border-radius: 8px;
  padding: 8px 14px; }

.btn-danger {
  background: #dc3545;
  color: white;
  border-radius: 8px;
  padding: 8px 14px; }

.btn-secondary {
  background: #ccc;
  color: #333;
  border-radius: 8px;
  padding: 8px 14px; }

a.btn-setting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  padding: 6px 12px;
  /* samakan dengan .btn-setting */ }

.device-action {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap; }

.device-action button {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s; }

.btn-hz {
  background: #007bff;
  color: white; }

.btn-run {
  background: #28a745;
  color: white; }

.btn-stop {
  background: #dc3545;
  color: white; }

.device-action button:hover {
  transform: translateY(-1px);
  opacity: 0.9; }

/* ================= SETTING PANEL ================= */
.setting-panel {
  display: none;
  margin: 20px;
  padding: 25px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef; }

.setting-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222; }

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px; }

.sensor-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #fafafa;
  transition: 0.2s; }

.sensor-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.08);
  transform: translateY(-2px); }

/* CARD AKTIF */
.sensor-item.active {
  border-color: #28a745;
  background: linear-gradient(135deg, #f4fff7 0%, #ecfff1 100%);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15); }

/* CARD NONAKTIF */
.sensor-item.inactive {
  opacity: 0.75;
  background: #f5f5f5; }

.sensor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px; }

.sensor-header input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer; }

.sensor-name {
  font-size: 16px;
  font-weight: 600;
  color: #333; }

/* STATUS BADGE */
.sensor-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: white; }

.sensor-badge.active {
  background: #28a745; }

.sensor-badge.inactive {
  background: #6c757d; }

.device-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 28px; }

.device-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px; }

.device-badge:hover {
  border-color: #007bff;
  background: #f0f7ff; }

.device-badge input {
  cursor: pointer; }

.btn-save {
  margin-top: 25px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: #007bff;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s; }

.btn-save:hover {
  background: #0056b3;
  transform: translateY(-1px); }

/* ================= MOBILE SETTING PANEL ================= */
@media (max-width: 768px) {
  .setting-panel {
    margin: 10px;
    padding: 15px;
    border-radius: 12px; }

  .setting-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px; }

  .sensor-grid {
    grid-template-columns: 1fr;
    gap: 12px; }

  .sensor-item {
    padding: 14px; }

  .sensor-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px; }

  .sensor-name {
    flex: 1;
    font-size: 15px;
    word-break: break-word; }

  .sensor-badge {
    font-size: 10px;
    padding: 4px 8px; }

  .device-list {
    margin-left: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px; }

  .device-badge {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    padding: 12px;
    font-size: 14px; }

  .device-badge small {
    margin-left: auto;
    font-size: 11px;
    color: #777; }

  .btn-save {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 16px; } }
.relay-on {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px;
  border-radius: 4px;
  background: #28a745;
  color: #fff;
  font-size: 11px;
  font-weight: bold; }

.relay-off {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px;
  border-radius: 4px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: bold; }

header {
  padding: 15px 0;
  background: #014b92; }

#menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0;
  list-style: none; }
  #menu ul li a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: #014b92;
    font-weight: 500;
    text-align: center;
    min-width: 95px;
    background: #f0f0f0;
    border-radius: 3px; }
    #menu ul li a i {
      margin-right: 2px; }

.content {
  margin-bottom: 15px; }

.title-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 5px 0;
  margin-bottom: 10px; }
  .title-content.with-action {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #999; }
  .title-content h3 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #014b92; }
    .title-content h3 i {
      margin-right: 5px; }

.title-action {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 300px;
  margin-right: 20px; }
  .title-action button {
    display: block;
    min-width: 80px;
    font-size: 13px;
    border-radius: 5px; }
    .title-action button.btn-sm {
      padding: 3px 10px; }

.item-box {
  margin-bottom: 15px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid orange; }
  .item-box.ready {
    border: 1px solid #007bff; }
    .item-box.ready .title-item-box span {
      color: #fff;
      background: #007bff; }

.title-item-box {
  padding-top: 10px;
  padding-left: 7px;
  padding-right: 5px;
  text-align: center; }
  .title-item-box h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #17124b; }

.content-item-box {
  padding: 10px 7px;
  padding-bottom: 12px;
  text-align: center; }
  .content-item-box h3 {
    margin: 0;
    font-size: 26px;
    color: #007bff;
    font-weight: bold; }

.footer-item-box {
  display: flex;
  justify-content: space-between;
  padding-left: 7px;
  padding-right: 7px;
  padding-bottom: 5px; }
  .footer-item-box span {
    font-size: 13px;
    color: #898989; }

.item-pump {
  margin-bottom: 14px;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #28a745; }

.title-pump {
  padding: 5px 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  background: #28a745; }

.content-pump {
  padding: 15px 10px;
  text-align: center; }
  .content-pump h5 {
    font-size: 16px;
    font-weight: 600; }
  .content-pump h3 {
    margin-bottom: 0px;
    font-size: 28px;
    color: #007bff;
    font-weight: 600; }

.footer-pump {
  display: flex;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px; }
  .footer-pump span {
    font-size: 13px;
    color: #999; }

.action-pump {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 25px;
  background: #f1f1f1; }
  .action-pump button {
    display: block;
    font-size: 13px;
    border-radius: 5px; }
    .action-pump button.btn-sm {
      padding: 3px 10px; }

.item-level {
  margin-bottom: 14px;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #fd7e14; }

.title-level {
  padding: 5px 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  background: #fd7e14; }

.content-level {
  padding: 15px 10px;
  text-align: center; }
  .content-level h5 {
    font-size: 16px;
    font-weight: 600; }
  .content-level h3 {
    margin-bottom: 0;
    font-size: 28px;
    color: #007bff;
    font-weight: 600; }

.footer-level {
  display: flex;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px; }
  .footer-level span {
    font-size: 13px;
    color: #999; }

.toggle-menu {
  display: none;
  margin-left: 15px;
  width: 100px;
  font-size: 26px;
  color: #fff; }

@media (max-width: 768px) {
  .toggle-menu {
    display: block; }

  #menu ul {
    position: fixed;
    display: block;
    top: 69px;
    left: 0;
    padding: 0;
    width: 300px;
    height: calc(100% - 69px);
    background: #f4f4f4;
    visibility: hidden;
    transform: translateX(-350px);
    transition: .3s;
    z-index: 999; }
    #menu ul.active {
      visibility: visible;
      transform: translateX(0);
      transition: .2s;
      box-shadow: 3px 0 10px rgba(51, 51, 51, 0.2); }
    #menu ul li {
      width: 100%;
      border-bottom: 1px solid #ddd; }
      #menu ul li a {
        display: block;
        padding: 20px 25px;
        font-size: 15px;
        text-align: left;
        font-weight: 500;
        background: transparent;
        border-radius: 0; }
        #menu ul li a:hover {
          color: #fff;
          background: #014b92; }

  .title-content {
    display: block; }
    .title-content h3 {
      margin-bottom: 10px; }

  .title-action {
    width: 100%; } }

/*# sourceMappingURL=dashboard.css.map */
