* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Calibri, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.page_container {
    display: flex;
    height: 600px;
    width:1024px;
}

.container {
    flex: 20;
    display: flex;
    flex-direction: column;
    background-color: #F2F2F2;
    padding: 20px;
    overflow-y: auto;
}

.container5{display: flex; gap: 20px; align-items: end;}
.container6{display: flex; gap: 20px;}
.leftcont , .leftcont2 , .leftcont3{display: flex; flex-direction: column; flex: 5; align-items: center;}
.leftcont5{flex: 5;}
.leftcont {border-right: 1px solid #A3A3A3;}
.rightcont{display: flex; flex-direction: column; flex: 4.5; padding-left: 5px; gap: 30px;}
.rightcont2{display: flex; flex-direction: column; flex: 5;}

.bottom_nav {
    flex: 1;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    padding: 15px;
    gap: 25px;
    border-right:1px solid #e8e8e8;
    box-shadow: 20px 0px 5px rgba(0, 0, 0, 0.1); /* Adds a little shadow for better visibility */
}

.bottom_nav a {
    background: none;
    border: none;
    font-size: 24px;
    color: #05478e;
    cursor: pointer;
}

.bottom_nav .active {
    color: #05478e; /* Active button will have the primary color */
}

.logobox{
    display: flex;
    align-items: center;
    flex: 3;
    gap: 5px;
}

.header {
    flex: 0.85;
    padding: 10px;
    position: fixed;
    background-color: #F2F2F2;
    max-width: 440px;
    width: 100%;
    top: 0;
}

.title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.title a{
    border: none;
    text-align: right;
}

.title h1 {
    flex: 2.5;
    font-size: 18.5px;
    color: #05478e;
    padding-left: 5px;
    border-left: 1px solid #05478e;
}

.title label{
    flex: 1.5;
    font-size: 17px;
    font-weight: bold;
    color: #0594d6;
    text-align: right;
}

.title2 {
    color: white;
    border-radius: 10px;
    background-color: #05478e;
    padding: 5px 10px;
    font-size: 19px;
    font-weight: bold;
}

.title3 {
    color: #05478e;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    background-color: white;
    padding: 5px 10px;
    font-size: 19px;
    font-weight: bold;
}

.box_container{
    display: flex;
    justify-content: center;
}

.box1 , .probox {
    display: flex;
    align-items: center;
    padding: 15px 30px 15px 20px;
    text-align: center;
    background-color: white;
    border-radius: 100px;
    border: 2px solid #CCCCCC;
    margin: 15px 0;
    width:fit-content;
}

.probox{background-color: #05478e;}

.info_box {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    margin-left: 20px;
    gap: 15px;
}

.info , .proname{
    font-size: 25px;
    font-weight: bold;
    color: #666666;
}

.proname{color: white; margin-left: 10px;}


.level_value {
    font-size: 35px;
    font-weight: bold;
    color: #05478e;
}


.input_group , .input_group2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #e9e9e9;
    border: 2px solid #CCCCCC;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    height: fit-content;
}
.input_group{width: 40%;}

.input_group2{width: 400px;}

.input_box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    margin-bottom: 10px;
}

.input_group label , .input_group2 label , .wrapper label{
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333333;
}

.input_box input {
  width: 100%;
  font-size: 17px;
  padding: 8px;
  margin-right: 5px;
  border: 2px solid #CCCCCC;
  border-radius: 10px;
  outline: none;
}

.input_box span {
    padding-left: 3px;
    font-size: 17px;
}

.culm1{
  display: flex;
  flex-direction: column;
  padding-right: 15px;
}

.culm1 span{
  font-size: 18px;
  font-weight: bold;
  color: #666666;
  margin-bottom: 10px;
}
.field span{
    font-size: 18px;
    font-weight: bold;
    color: #666666;
}

.save_button , .save_button2 {
    font-size: 21px;
    font-weight: bold;
    padding: 10px;
    background-color: #05478e;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.save_button{width: 400px; /* For just profile page is 45% */}

.save_button2{width: 400px;}


hr {
    border:1px solid #dcdcdc;
    margin: 15px 0;
}

.tabs {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    gap: 10px;
}

.tabs a {
    background-color: white;
    border: 2px solid #cccccc;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    color: #05478e;
}

.tabs .active {
    background-color: #05478e;
    color: white;
}

.image-section{flex: 3;}
.textcul1{flex: 4;}

.image-section img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #A3A3A3;
    margin: 5px 0;
}

.leak_section{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.toggle_btn {
    padding: 5px 7px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
  }

.gas_status {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    justify-content: space-between;
    flex: 5;
}

.status_icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.leak {
    background-color: #f8d7da; /* Red background for leak */
    color: #721c24;
}

.no_leak {
    background-color: #d4edda; /* Green background for no leak */
    color: #155724;
}

.status_icon.leak {
    background-color: red;
}

.status_icon.no_leak {
    background-color: green;
}

.status_text {
    margin-left: 8px;
    font-size: 17px;
    font-weight: bold;
}

.profile , .automation{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.sensors h2, .devices h2 , .automation h2{
    font-size: 21px;
    margin-bottom: 10px;
}

.automation h2{
    margin-top: 10px;
}

.titr , .titr2{
    display: flex;
    justify-content: flex-start;
    font-size: 21px;
    font-weight: bold;
    margin: 10px;
    width: 400px
}

.sensor_grid, .device_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.sensor_card, .device_card {
    background-color: white;
    border: 2px solid #CCCCCC;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    height: 125px;
    width: 48%;
    
}

.column1 , .column3{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.column3{
    justify-content: flex-start;
}

.column1 div , .column1 p , .column3 div , .column3 p{
    padding-bottom: 6px ;
}

.column1 p , .column3 p{
    font-size: 18px;
    font-weight: bold;
    color: #666666;
}

.column1 span , .column2 span , .column3 span{
    font-size: 20px;
    font-weight: bold;
    color: #05478e;
}

.column2{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:flex-end;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #05478e;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.login_container{
    display: flex;
    height: 600px;
    width:1024px;
}
.logsec1{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: white;
}
.logsec2{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: #05478e;
}
.image-section2{display: flex; justify-content: center;}
.image-section2 img {width: 40%; margin-bottom: 50px;}
.image-section3 {flex: 2;}
.image-section3 img {width: 100%;}

.welcom{font-size: 26px; font-weight: bold; color: #333333; margin-bottom: 5px;}
.safab{font-size: 33px; font-weight: bold; color: #05478e; letter-spacing: 4px;}

.login_box , .proedit_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    width: 50%;
    color: #fff;
    gap: 8px;
  }
  
  .login_box p , .proedit_box p {
    font-size: 24px;
    font-weight: bold;
  }

.login_button {
    font-size: 20px;
    width: 100%;
    padding: 7px;
    background-color: #0c94d3;
    color: #fff;
    border: none;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
}

.login_box input , .proedit_box input {
    width: 100%;
    font-size: 17px;
    padding: 8px 10px;
    border: 2px solid #A3A3A3;
    border-radius: 15px;
    outline: none;
}

.proedit_box{
    padding: 0;
    width: 100%;
}

.popup {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 999;
}

.popup_content {
    background-color: white;
    border-radius: 10px;
    max-width: 400px;
    height: fit-content;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.addnewbtn{
    cursor: pointer;
    margin-left: 7%;
    text-decoration: none;
    background-color: white;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    color: #05478e;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
}
.addnewbtn:hover{
    color: white;
    background-color: #05478e;
    border: 1px solid #05478e;
}

.row_hedear{
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: #05478e;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    margin: 0 0 2px 0;
}

.row_hedear .cell1{
    flex: 1;
    font-size: 16px;
    color: white;
    padding: 5px 7px;
}

.row_hedear .cell2{
    flex: 20;
    font-size: 16px;
    color: white;
    border-right: 1.5px solid #F2F2F2;
    border-left: 1.5px solid #F2F2F2;
    padding: 5px;
}
.row_hedear .cell3{
    flex: 3.5;
    font-size: 16px;
    color: white;
    padding: 5px;
}

.norm_row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: white;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    margin: 2px 0;
}

.norm_row .cell1{
    flex: 1;
    font-size: 16px;
    color: #5e5e5e;
    padding: 5px 7px;
}

.norm_row .cell2{
    flex: 20;
    font-size: 16px;
    color: #5e5e5e;
    border-right: 1.5px solid #F2F2F2;
    border-left: 1.5px solid #F2F2F2;
    padding: 5px;
}
.norm_row .cell3{
    flex: 3.5;
    font-size: 16px;
    color: #5e5e5e;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@font-face {
    font-family: 'Shabnam FD'; /* Name your font family */
    src: url('fonts\Shabnam-FD.ttf'); /* Locate the .ttf file within your directory*/
}

.help_content{
    display: flex;
    flex-direction: column;
}

.helpsec1{
    display: flex;
    gap: 15px;
}

.texttitle1{
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #666666;
    margin: 5px 0 10px 0;
}

.help_content h3{
    color: #333333;
    font-size: 18px;
    font-family: 'Shabnam FD';
    font-weight: bold;
    margin: 5px 0;
    text-align: right;
    direction: rtl;
}

.help_content p{
    color: #333333;
    font-size: 15px;
    font-family: 'Shabnam FD';
    font-weight: 550;
    margin: 5px 0;
    text-align: justify;
    line-height: 1.5;
    direction: rtl;
    
}

/* range slider ///////////////////////////////////////////////////*/

::selection{
  color: #fff;
  background: #17A2B8;
}
.wrapper{
  width: 400px;
  background: #fff;
  border-radius: 10px;
  padding: 15px 15px 40px;
  margin-bottom: 7px;
  border: 2px solid #CCCCCC;
}

header h2{
  font-size: 24px;
  font-weight: 600;
}
header p{
  margin-top: 5px;
  font-size: 16px;
}
.price_input{
  width: 100%;
  display: flex;
  margin: 15px 0 35px;
}

.field{display: flex; align-items: center;}

.price_input .field{
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
}
.field input{
  width: 80px;
  height: 30px;
  outline: none;
  font-size: 17px;
  font-weight: bold;
  margin-left: 12px;
  border-radius: 5px;
  text-align: center;
  color: #05478e;
  border: 2px solid #CCCCCC;
  -moz-appearance: textfield;
}

.price_input .separator{
  width: 130px;
  display: flex;
  font-size: 19px;
  align-items: center;
  justify-content: center;
}
.slider2{
  height: 5px;
  position: relative;
  background: #ddd;
  border-radius: 5px;
}
.slider2 .progress{
  height: 100%;
  left: 25%;
  right: 25%;
  position: absolute;
  border-radius: 5px;
  background: #05478e;
}
.range_input{
  position: relative;
}
.range_input input{
  position: absolute;
  width: 100%;
  height: 5px;
  top: -5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17A2B8, #42D1F5);
    border: 2px solid white;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2); /* Slightly enlarge on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  }
  
  input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17A2B8, #42D1F5);
    border: 2px solid white;
    pointer-events: auto;
    -moz-appearance: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2); /* Slightly enlarge on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  }

/* ///////////////////////////////////////////////////////////////// */

/* /////////////////////////////// normal range slider ////////////////////////////////////////////// */
.range_slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    position: relative;
  }
  
  .range_slider::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17A2B8, #42D1F5);
    border: 2px solid white;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .range_slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  }
  
  .range_slider::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17A2B8, #42D1F5);
    border: 2px solid white;
    pointer-events: auto;
    -moz-appearance: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .range_slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  }
/* //////////////////////////////////////////////////////////////// */

/* ////////////////////////// Time Picker ///////////////////////// */
.time_picker {
    display: flex;
    align-items: center;
    border: 2px solid #CCCCCC;
    border-radius: 10px;
    background-color: #F2F2F2;
    padding: 5px 10px;
    gap: 5px;
    transition: all 0.3s ease;
}

.time_picker div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time_picker input {
    width: 45px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border: 1px solid #cfcfcf;
    outline: none;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s;
}

.tp_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.tp_container span {
    font-size: 18px;
      font-weight: bold;
      color: #434343;
      margin: 0 0 7px;
    }

.container8{
    display: flex;
    justify-content:space-around;
    gap: 20px;
    margin-top: 10px;
}


/* Remove default input buttons */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.time_picker input:focus {
    border-bottom-color: #004085;
    background-color: #e9f7fe;
}

.time_picker button {
    border: none;
    color: #004085;
    background-color: transparent;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.time_picker button:hover {
    color: #17A2B8;
    transform: scale(1.1);
}

/* .time_picker button:active {
    background-color: #004085;
} */



/* Adding a subtle animation for smoother button transitions */
button, input {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* //////////////////////////////////////////////////////////////// */
@media screen and (min-width: 351px) and (max-width: 380px) {
    .tabs a { font-size: 2vh;  }
    .row_hedear .cell2{flex: 9;}
    .norm_row .cell2{flex: 9;}
}

@media screen and (max-width: 350px) {
    .tabs a {font-size: 1.75vh;}
    .row_hedear .cell2{flex: 8;}
    .norm_row .cell2{flex: 8;}
    .sensor_card{height: 140px;}
    .sensor_card p {font-size: 15px;}
}
@media screen and (min-width: 381px) and (max-width: 430px) {
    .row_hedear .cell2{flex: 11;}
    .norm_row .cell2{flex: 11;} 
}