
* {
    margin: 0;      /* Remove default margin */
    padding: 0;     /* Remove default padding */
  }
  
  html, body {
    width: 100%;    /* Set width to full viewport */
    height: 100%;   /* Set height to full viewport */
  }

  @font-face {
    font-family: 'n2p-cloud-icons';
    src: url('font/n2p-cloud-icons.eot?48130452');
    src: url('font/n2p-cloud-icons.eot?48130452#iefix') format('embedded-opentype'),
         url('font/n2p-cloud-icons.woff2?48130452') format('woff2'),
         url('font/n2p-cloud-icons.woff?48130452') format('woff'),
         url('font/n2p-cloud-icons.ttf?48130452') format('truetype'),
         url('font/n2p-cloud-icons.svg?48130452#n2p-cloud-icons') format('svg');
    font-weight: normal;
    font-style: normal;
  }


  .body-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    background:  
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(210, 210, 210, 0.8)),
    url(img/bg.png) no-repeat center / cover,
    linear-gradient(132deg, #fff -0.2%, #bdbcbc 100%);
}

.body-container .left-container {
    display: flex;
    flex-direction: column;
    max-width: 750px;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    background: linear-gradient(
        180deg,
        rgb(0, 46, 92) 0%,
        rgb(7.19, 65.64, 116.17) 90%
    );
    padding: 2%;
}

.body-container .login-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 40px;
    padding: 10%;
    box-sizing: border-box;
}

.body-container .welcome-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.body-container form {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
    flex-direction: column;
}

.body-container .logo:after, .body-container .side-nav-logo:after, .body-container .header-logo:after {
    position: relative;
    content: "\e80a";
    font-family: 'n2p-cloud-icons';
    color: #fff;
    font-size: 52px;
    -webkit-font-smoothing: antialiased; /* Improves the smoothness of fonts in WebKit browsers (e.g., Chrome, Safari) */
    -moz-osx-font-smoothing: grayscale;  /* Improves font rendering in Firefox on macOS */
    font-smooth: always;
    display: block;
}

.body-container .welcome {
    font-size: 25px;
    color: #fff;
    font-family: var(--nav-item-heading-regular-font-family);
    font-weight: var(--nav-item-heading-large-font-weight);
    height: 45px;
}

.body-container .label {
    align-self: stretch;
    display: flex;
    position: relative;
    margin-top: -1.00px;
    font-family: "Inter-Regular", Helvetica;
    font-weight: 400;
    color: #8aa8d0;
    font-size: 16px;
    letter-spacing: 0;
    line-height: normal;
}

.body-container .input-field {
    padding: 16px;
    background-color: var(--variable-collection-n2p-input-field-background);
    border-radius: 5px;
    padding-left: 40px;
    border: 1px solid #346087;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}


.body-container .input-componant {
    justify-content: space-between;
    flex-direction: column;
    display: flex;
    width: 100%;
    gap: 10px;

}
.body-container .input-container {
    width: 100%;
    position: relative;
    
}

.body-container .input-container.password::before {
    content: "\e807";
    font-family: 'n2p-cloud-icons';
    position: absolute;
    margin: 17px;
    z-index: 9999;
    color: var(--variable-collection-n2p-input-field-label);
}
.eye-icon {
    font-size: 1.25em;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "n2p-cloud-icons";
    color: var(--variable-collection-n2p-input-field-label);
}

.body-container .input-container.user::before {
    content: "\e80d";
    font-family: 'n2p-cloud-icons';
    position: absolute;
    margin: 17px;
    width: 17px;
    z-index: 9999;
    color: var(--variable-collection-n2p-input-field-label);
}


input {
    color:#fff; 
    font-size: 16px;
}

::-webkit-input-placeholder, input::placeholder {
    position: relative;
    width: fit-content;
    font-family: "Inter-Regular", Helvetica;
    font-weight: 400;
    color: var(--variable-collection-n2p-input-field-input-label);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 16px;
    white-space: nowrap;
}

input:focus {
    background-color: #063360 !important;
    border-color: #8aa8d0 !important;
    outline: none;
}


.body-container button.button-primary {
    display: flex;
    box-sizing: border-box;
    color: var(--variable-collection-n2p-input-field-label);
    font-size: var(--button-regular-font-family);
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    align-self: stretch;
    width: 100%;
    background-color: #002e5c;
    border-radius: 5px;
    border: 1px solid;
    border-color: var(--variable-collection-n2p-border);
    transition: all 0.15s ease-in-out;
}
.body-container .button-wrapper {
    display: flex;
    flex-direction: column;
    gap:15px;
}

.body-container button.button-primary:hover {
   background-color: #02203D;
   cursor: pointer;
}
.body-container button.button-primary:active {
    background-color: #000;
 }

.body-container .forgot-password {
    position: relative;
    width: 100%;
    text-align: right;
}
a {transition: all 0.1s ease;
    position: relative;
    font-family: var(--button-regular-font-family);
    font-weight: var(--button-regular-font-weight);
    color: var(--variable-collection-n2p-input-field-label);
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;}
a:hover {
    text-decoration: underline;
    cursor: pointer;
}


.body-container .image-container {
    position: relative;
    flex: 1;
    align-self: stretch;
    background: url(img/tank-farm.jpg) no-repeat center;
    background-size: cover;

}



/* ** Side nav styles ** */

.body-container .content-container {
    width: 100%;
}
.loggedin-left-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
    align-self: stretch;
    padding: 50px;
    background: linear-gradient(
        180deg,
        rgb(0, 46, 92) 0%,
        rgb(7.19, 65.64, 116.17) 90%
    );
    box-sizing: border-box;
    display: block;
    
}

.body-container button.nav-button {
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    font-size: var(--nav-item-sub-heading-regular-font-size);
    font-weight: var(--nav-item-sub-heading-regular-font-weight);
    letter-spacing: var(--nav-item-sub-heading-regular-letter-spacing);
    gap: 8px;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 4px;
    transition: all 0.15s ease-out;
    padding: 10px 20px;
}
.body-container button.nav-button:hover, .item-title:hover {
    background: var(--variable-collection-n2p-side-nav-hover-colour);
}
.body-container button.nav-button:active, .item-title:active {
    background: var(--variable-collection-n2p-side-nav-press-colour);
}
.button-icon {
    display: flex;
    font-size: 1.25em;
    cursor: pointer;
    font-family: "n2p-cloud-icons";
    color: var(--variable-collection-n2p-input-field-label);
}

.body-container .side-nav-logo:after {
    font-size: 45px;
    padding: 15% 20px;
}
.item-container{
    width: 100%;
}
.item-sub-menu {
    width: 100%;
}
.item-title {
    font-family: var( --nav-item-heading-regular-font-family);
    font-size: var(--nav-item-heading-regular-font-size);
    font-weight: var(--nav-item-heading-regular-font-weight);
    letter-spacing: var(--nav-item-heading-regular-letter-spacing);
    line-height: var(--nav-item-heading-regular-line-height);
    color: #fff;
    box-sizing: border-box;
    display: flex;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    width: 100%;
    border-radius: 4px;
}
.nav-title .button-icon {
font-family: "n2p-cloud-icons";
}

.lower-menu {
    width: 100%;
    margin-top: 50px;
}

.item-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.button-icon {
    transition: transform 0.2s ease;
}
.item-sub-menu {
    display: none;
    overflow: hidden;
}
.item-sub-menu.open {
    display: block;
    animation: slideDown 0.3s ease forwards;
}
.item-sub-menu.closing {
    animation: slideUp 0.3s ease forwards;
}
@keyframes slideDown {
    0% {
        max-height: 0;
        opacity: 0;
    }
    100% {
        max-height: 500px;
        opacity: 1;
    }
}
@keyframes slideUp {
    0% {
        max-height: 500px;
        opacity: 1;
    }
    100% {
        max-height: 0;
        opacity: 0;
    }
}



/* Base styles */
.loggedin-left-container {
    background: linear-gradient(
        180deg,
        rgb(0, 46, 92) 0%,
        rgb(7.19, 65.64, 116.17) 90%
    );
    z-index: 1000;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .loggedin-left-container {
        position: fixed;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
    }
    .loggedin-left-container.open {
        transform: translateX(0);
    }
    /* The right content stays full width on mobile */
}

/* Desktop styles */
@media (min-width: 769px) {
    .loggedin-left-container {
        position: fixed;
        width: 500px; /* Set a fixed width for the side nav */
        height: 100%;
        transform: translateX(0);
    }
    .loggedin-left-container.open {
        transform: translateX(-500px); /* Move off-screen when 'open' */
    }
    /* Adjust the right content area */
    .right-content {
        margin-left: 500px; /* Shift right content to accommodate side nav */
        transition: margin-left 0.3s ease;
    }
    /* When menu is 'open' (hidden), reset margin */
    .loggedin-left-container.open + .right-content {
        margin-left: 0;
    }
}



/* menu hamburger animation */
.menu-link-wrapper {
width: 65px;
height: 45px;
cursor: pointer;
margin: 60px auto;
z-index: 99999999999;
}

.menu-link {
width: 100%;
height: 100%;
}

.lines {
-moz-transition: background 0.2s ease 0.4s;
-o-transition: background 0.2s ease 0.4s;
-webkit-transition: background 0.2s ease;
-webkit-transition-delay: 0.4s;
transition: background 0.2s ease 0.4s;
display: block;
height: 2px;
background: #aaa;
-moz-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-webkit-transform-origin: 50% 50%;
transform-origin: 50% 50%;
width: 60%;
margin: 0 20%;
position: relative;
background: #ffffff;
top: 22px;
}

.lines:before,
.lines:after {
display: block;
width: 100%;
height: 2px;
background: #aaa;
-moz-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-webkit-transform-origin: 50% 50%;
transform-origin: 50% 50%;
position: absolute;
left: 0;
content: '';
background: #ffffff;
-moz-transition: -moz-transform 0.2s ease 0s, width 0.2s ease 0.2s, top 0.2s ease 0.4s;
-o-transition: -o-transform 0.2s ease 0s, width 0.2s ease 0.2s, top 0.2s ease 0.4s;
-webkit-transition: -webkit-transform 0.2s ease, width 0.2s ease, top 0.2s ease;
-webkit-transition-delay: 0s, 0.2s, 0.4s;
transition: transform 0.2s ease 0s, width 0.2s ease 0.2s, top 0.2s ease 0.4s;
-moz-transform-origin: 0 50%;
-ms-transform-origin: 0 50%;
-webkit-transform-origin: 0 50%;
transform-origin: 0 50%;
}

.lines:before {
top: -10px;
}

.lines:after {
top: 10px;
}

.menu-trigger-open .lines {
-moz-transition: background 0.2s ease 0s;
-o-transition: background 0.2s ease 0s;
-webkit-transition: background 0.2s ease;
-webkit-transition-delay: 0s;
transition: background 0.2s ease 0s;
}

.menu-trigger-open .lines:before,
.menu-trigger-open .lines:after {
-moz-transition: top 0.2s ease 0s, width 0.2s ease 0.2s, -moz-transform 0.2s ease 0.4s;
-o-transition: top 0.2s ease 0s, width 0.2s ease 0.2s, -o-transform 0.2s ease 0.4s;
-webkit-transition: top 0.2s ease, width 0.2s ease, -webkit-transform 0.2s ease;
-webkit-transition-delay: 0s, 0.2s, 0.4s;
transition: top 0.2s ease 0s, width 0.2s ease 0.2s, transform 0.2s ease 0.4s;
top: 0;
width: 50%;
}

.menu-trigger-open .lines:before {
-moz-transform: rotate3d(0, 0, 1, 45deg);
-webkit-transform: rotate3d(0, 0, 1, 45deg);
transform: rotate3d(0, 0, 1, 45deg);
}

.menu-trigger-open .lines:after {
-moz-transform: rotate3d(0, 0, 1, -45deg);
-webkit-transform: rotate3d(0, 0, 1, -45deg);
transform: rotate3d(0, 0, 1, -45deg);
}




.hamburger {
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    height: 48px;
    width: 48px;
    justify-content: center;
    align-items: center;
    padding: 8px;
    transition: all 0.15s ease-out;
    z-index: 99999;
    box-sizing: border-box;
    background-color: var(--variable-collection-n2p-body-color);
}

.hamburger:hover{
    background-color: #00264d;
}
.hamburger:active{
    background-color: #000;
}

.loggedin-header {
    display: flex;
    padding-right: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.right-content {
    width: 100%;
    padding: 110px 70px;
    align-items:flex-start;
    box-sizing: border-box;
}
.body-container .header-logo:after {
    font-size: 45px;
    color: var(--variable-collection-n2p-body-color);
}

.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    font-family: var(--nav-item-heading-regular-font-family);
    box-sizing: border-box;
}

.page-container {
    width: 100%;
    color: var(--variable-collection-n2p-body-color);
    gap: 30px;
    display: flex;
    flex-direction: column;
    margin-top: 50px;


}
.breadcrumbs {
    display:flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}
.breadcrumbs .button-icon {
    color: var(--variable-collection-n2p-body-color);
}

.page-container h1 {
    font-size: 32px;
}

.page-header {
    display:flex;
    flex-direction: column;
    gap: 30px;
}
.page-header .welcome-intro {
    display:flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

/* Dashboard Card */

.dashboard-card {
    border-radius: 8px;
    background: #fff;
    color: var(--variable-collection-n2p-body-color);
    border: 1px solid #efefef;
    min-width: 225px;
    max-width: 33.33%;
    flex: 1 1 0%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.dashboard-card:hover {
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.08), 0px 4px 15px 0px rgba(0, 0, 0, 0.15);
}


.dashboard-card .card-header {
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-direction: row; 
    justify-content: space-between;
    flex-wrap: wrap;
}
.dashboard-card .card-title {
    font-weight: var(--dashboard-card-title-font-weight);
    font-size: var(--dashboard-card-title-font-size);
    letter-spacing: var(--dashboard-card-title-letter-spacing);
    line-height: var(--dashboard-card-title-line-height);
    white-space: nowrap;
}

.dashboard-card .card-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    line-height: 8px;
    font-weight: 600;
    justify-content: end;
    text-align: right;

}
.dashboard-card .card-status .card-status-level,.dashboard-card .card-status .card-status-temp {
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 5px;
} 



.dashboard-card .card-number {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: right;
    font-size: 28px;
    line-height: 24px;
    font-weight: 600;
    gap: 5px;
}

.dashboard-card .card-ltr::after, .dashboard-card .card-deg::after {
    margin-left:3px;
}

.dashboard-card .card-ltr::after {
    content:'Ltr';
    font-size: 10px;
    line-height: 10px;
    font-weight: 600;
}
.dashboard-card .card-deg::after {
    content:'\00B0 C';
    font-size: 10px;
    line-height: 10px;
    font-weight: 600;
}
.dashboard-card .card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;

}

.dashboard-card .temp-measure-bar {
    display: flex;
    width: 28px;
    justify-content: center;
    align-items: flex-end;  
    align-self: stretch;
    border-radius: 50px;
    background: linear-gradient(0deg, #F9F9F9 0%, #E5E5E5 100%);
    overflow: hidden;

}

.dashboard-card .temp-measure-bar-level {
    background: var(--variable-collection-n2p-primary-background);
    width: 100%;
    display: flex;
    align-items: flex-end;  
}

.dashboard-card .status-led {
    width: 8px;
    height: 8px;
    border-radius: 100%;
}

.dashboard-card .status-led.green {
background: var(--n2p-status-green);
}
.dashboard-card .status-led.yellow {
    background: var(--n2p-status-yellow);
}
.dashboard-card .status-led.red {
    background: var(--n2p-status-red);
}


.dashboard-card.valve-card {
    min-width: 125px;
}
.dashboard-card.valve-card .card-status {
    width: 100%;
}

.dashboard-card.flow-meter-card, .dashboard-card.table-card {
    max-width: 50%;
}
.dashboard-card.flow-meter-card .card-number{
    flex-direction: row;
    gap: 20px;
    padding: 0px;
}
.dashboard-card.flow-meter-card .flow-status {
    justify-content: flex-end;
}
.dashboard-card.flow-meter-card .flow-status-wrap .flow-label {
    font-size: 14px;
    text-align: right;
    font-weight: 400;
}

/* Table Styles */

.table {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
  
  .row {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #efefef;
  }
  .row:hover {
    background-color: #F3F3F3;
    font-weight: 600;
    border-radius: 5px;
  }

  
  .cell {
    flex: 0 0 100%;
  }
  .cell:nth-child(2),.cell:nth-child(3) {
    text-align: right;
  }
  .cell:nth-child(1) {
    font-weight: 600;
  }
  @media (min-width: 440px) {
    .row {
      flex-direction: row;
      border-bottom: none;
    }
  
    .cell:nth-child(1) {
      flex: 0 0 50%;
    }
  
    .cell:nth-child(2) {
      flex: 0 0 18%;
      text-align: right;
    }
  
    .cell:nth-child(3) {
      flex: 0 0 calc(32% - 5px);
      text-align: right;
      margin-left: 5px;
    }
  }
  
/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.page-icon,
.page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    padding: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.1s ease-out;
}

.page-icon {
    font-size: 24px;
}

.page-number:hover, .page-icon:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.page-number:active, .page-icon:active {
    background-color: var(--variable-collection-n2p-body-color);
    color: #fff;
    border-radius: 4px;
}

/* Setting page */

.dashboard-cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap:20px;
    box-sizing: border-box;
}

.dashboard-card.settings-card {
    overflow: hidden;
    min-width: 48%;
    flex: 1;
    box-sizing: border-box;
}
.settings-card .item-title {
    color: var(--variable-collection-n2p-body-color);
    transition: all 0.15s ease;
}

.settings-card .item-title.notAssigned {
    color: #C6C6C6;

}
.settings-card .item-title:hover, .settings-card .item-title:active  {
    background: #F3F3F3;
    border-radius: 0;
}
.dashboard-card.settings-card .item-title:hover .button-icon {
    color: var(--variable-collection-n2p-body-color);
}

.dashboard-card.settings-card .settings-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    background: #F2F2F2; 
    padding: 20px;
    flex-wrap: wrap;
}
.dashboard-card.settings-card .settings-input-container {
    gap: 5px;
    display: flex;
    flex-direction: column;
    flex: 1 1 1;
}

.dashboard-card.settings-card .settings-input-container.fill {
    flex: 1;
}
.dashboard-card.settings-card .settings-input-container .settings-input-label {
    font-size: 16px;
}

.dashboard-card.settings-card .settings-input-container .settings-input-field {
    background: #f9f9f9;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: row;
    font-size: 25px;
    gap: 10px;
    justify-content:space-around;
    align-items: center;
    transition: all .15s ease;
}
.dashboard-card.settings-card .settings-input-container .settings-input-field:hover {
    background: #eeeded;
    cursor: pointer;
}


.settings-input-field-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-card.settings-card .settings-input-container .settings-input-field .setting-input-field-lower-label{
    font-size: 14px;
}



.dashboard-card.settings-card .settings-row {
    display: none;
}

.dashboard-card.settings-card .settings-row.open {
    display: flex !important;
    animation: slideDown 0.3s ease-in-out forwards;
}
.dashboard-card.settings-card .settings-row.closing {
    display: flex !important;
    animation: slideUp 0.3s ease-in-out forwards;
}



@media screen and (max-width: 768px){
    .page-container, .loggedin-header {
        padding: 10px;
    }
    .right-content {
        padding: 10%;
    }
    .body-container .side-nav-logo:after {
        padding: 0px 20px 20px 20px;
        margin-bottom: 20px;
    }
    .hamburger {
        height: 44px;
    width: 44px;
    }

    .main-content {
        padding: 50px 0px;
    }
    .dashboard-card, .dashboard-card.flow-meter-card, .dashboard-card.settings-card {
        max-width: 100%;
    }
    .dashboard-card.flow-meter-card .flow-status {
        width: 100%;
    }
}


@media screen and (max-width: 950px){
.dashboard-card.table-card {
    max-width: 100%;
}
}

@media (min-width: 768px) {
    .header-logo {
        opacity: 0;
        transition: opacity 0.5s;
    }
    /* Show the logo when the menu has the 'open' class */
    .loggedin-left-container.open + .header-logo {
        opacity: 1;
    }
}