﻿.header {
    background-color: #dedede;
}

.header-logo img {
    width: 200px;
}

.header-content {
    color: #171777;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-title {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login_info {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-header {
    color: white;
    background-color: #00000066;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .nav-header button::before {
        content: "";
        position: absolute;
        left: 1px;
        right: 1px;
        top: 1px;
        bottom: 1px;
        border-radius: 4px;
        background-color: gray;
        z-index: -1;
    }

    .nav-header button.active:before {
        color: white;
        background-color: #24fe41;
    }

    .nav-header button:hover,
    .nav-header button.active:hover {
        color: white;
        background-color: green;
    }

    .nav-header button {
        width: 8rem;
        border: none;
        outline: none;
        position: relative;
        border-radius: 5px;
        background: linear-gradient(45deg, white, rgb(16, 220, 16), white);
        color: white;
        cursor: pointer;
        z-index: 1;
    }
/* 
.nav-header .btn {
  --borderWidth: 3px;
  color: white;
  background: gray;
  position: relative;
  border-radius: var(--borderWidth);
  transition: 0.25s ease;
}

.nav-header .btn:hover {
  background: green;
}

.nav-header .btn.active {
  background: #24fe41;
}

.nav-header .btn:after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--borderWidth));
  left: calc(-1 * var(--borderWidth));
  height: calc(100% + var(--borderWidth) * 2);
  width: calc(100% + var(--borderWidth) * 2);
  background: linear-gradient(
    60deg,
    #f79533,
    #f37055,
    #ef4e7b,
    #a166ab,
    #5073b8,
    #1098ad,
    #07b39b,
    #6fba82
  );
  border-radius: calc(2 * var(--borderWidth));
  z-index: -1;
  animation: animatedgradient 3s ease alternate infinite;
  background-size: 300% 300%;
}

.nav-header .btn.btn.active:after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--borderWidth));
  left: calc(-1 * var(--borderWidth));
  height: calc(100% + var(--borderWidth) * 2);
  width: calc(100% + var(--borderWidth) * 2);
  background: linear-gradient(
    60deg,
    #7ef733,
    #f3ee55,
    #79ef4e,
    #66ab93,
    #5073b8,
    #1098ad,
    #07b39b,
    #6fba82
  );
  border-radius: calc(2 * var(--borderWidth));
  z-index: -1;
  animation: animatedgradient 3s ease alternate infinite;
  background-size: 300% 300%;
}

@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
} */

table {
    min-width: 300px;
}

    table thead {
        color: white;
        background-color: #00000066;
    }

        table thead tr th,
        table tbody tr td,
        table tbody tr th {
            vertical-align: middle;
        }

        table thead tr th,
        table tbody tr td {
            text-align: center;
        }

    table tbody tr th[rowspan] {
        font-size: 2rem;
        text-align: center;
        writing-mode: vertical-rl;
    }

    table tbody tr:has(th[rowspan]):not(:first-child) {
        border-top: 5px solid #00000066;
    }

.form-floating label {
    color: yellow;
}

.form-floating select.form-select {
    border: none;
    outline: none;
    color: white;
    background-color: transparent;
}

.form-floating select option {
    background-color: gray;
}

#water-setting-content .container div:first-child {
    padding: 5px 0px;
    text-align: right;
}

.cell {
    height: 180px;
    border: 1px solid #afefe8;
    text-align: center;
    vertical-align: middle;
    padding: 10px;
    font-weight: bold;
}

#fire-setting i {
    font-size: 20px;
    color: #ff6a00;
}

#water-setting i {
    font-size: 20px;
    color: #2196f3;
}

.w-value {
    font-size: 60px;
    padding-top: 10px;
}
/*
#wt1 {
  background-color: #bb5014;
}
#wt2 {
  background-color: #f01204;
}
#wt3 {
  background-color: #7b8f37;
}*/

.btn-fire {
    background-image: url("images/fire.webp");
    width: 80px;
    height: 100px;
    background-size: 80px 100px;
    position: relative;
}

#f1 {
    left: 620px;
    top: -593px;
}

#f2 {
    left: 308px;
    top: -665px;
}

#f3 {
    left: 588px;
    top: -600px;
}

#f4 {
    left: 839px;
    top: -935px;
}

#app-sologan {
    display: none;
}

#img-cmd-fire {
    display: none;
}

@media only screen and (min-width: 769px) {
    #app-sologan {
        display: block !important;
    }

    #img-cmd-fire {
        display: inline;
    }

    #app-sologan2 {
        display: none;
    }
}

lord-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    display: inline-block !important;
}

.cmd-view-history {
    cursor: pointer;
}

.vi-tri {
    text-align: left;
}

.nguong-min-max{
  font-size:11px;
}

.thoi-gian2{
  font-size:11px;
}

.sensor-error{
    color: yellow !important;
    background-color:red;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}