/* base css */
body {
  margin: 0;
  font-family: "Kailasa", "Arial", sans-serif;
  text-align: center;
  background-color: #ffffff;
}
.main{
  width: 100%;
  overflow-x: hidden;
}
.primary-btn {
  border-radius: 100px;
  color: white;
  background-color: #2F6C90;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;;
  min-width: 150px;
  margin: 0.2rem;
  border-width: 0px;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  vertical-align: middle;
  }
.primary-btn:hover,
.primary-btn:focus { 
  background-color: #1d475f;
  color: #ffffff;
  } 
.secondary-title {
  font-weight: lighter;
}
.primary-title {
  text-align: left;
  font-weight: normal
}

.secondary-btn {
  border-radius: 100px;
  color: #2F6C90; /* Text color */
  background-color: #E8F1F6; /* Background color */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  min-width: 150px;
  margin: 0.2rem;
  border-width: 0px;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  vertical-align: middle;
}

.secondary-btn:hover,
.secondary-btn:focus {
  background-color: #d3e4ee; /* Darker shade on hover */
  color: #2d4d5e; /* Adjust text color for better contrast */
}


/* header */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo img {
max-width: auto;
height: 80%;
}
.main-head{
position: sticky;
z-index: 1000;
display: flex;
height: 60px;
justify-content: space-between;
/* justify-content: flex-end; */
align-content: center;
background-color: #ffffff;
box-shadow: 0 2px 2px -2px gray;
padding-right: 1.5rem;
padding-left: 1.5rem;
}

.menu {
  font-size: small;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.notification {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 15px 25px;
  border-radius: 4px;
  color: #2b2828;
  font-weight: lighter;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.notification.success {
  background-color: #cce4cc;
}

.notification.error {
  background-color: #edc2bf;
}

.notification.hide {
  opacity: 0;
}

/* .menu {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 2px 2px -2px gray;
} */
/* .menu {
height: 80px;
display: flex;
justify-content: flex-end;
background-color: #ffffff;
box-shadow: 0 2px 2px -2px gray;
align-items: center;
padding-right: 1.5rem;
padding-left: 1.5rem;
} */

.menu-item {
  padding: 0.5rem 1rem;
}
.menu-item a {
  color: #1d475f;
  text-decoration: none;
}
.menu-item:hover {
  font-weight: bold;
}

/* auth css */
.container_field{
  display: flex;
  justify-content: center;
}
.column_auth{
  width: 30%;
}
.title_auth {
  font-size: 2rem;
}
.field_auth{
  padding: 0.25rem;
}
.input_auth{
  width: 80%;
  min-height: 2rem;
  max-width: 15rem;
  border-radius: 0.25rem;
  padding-left: 0.5rem;
  border: 1px solid rgb(158, 158, 158);
}
/* .button_primary{
  width: 80%;
  margin-top: 1.75rem;
} */
/* .button_primary {
align-items: center;
background-color: #2F6C90;
border: 0;
border-radius: 1.5rem;
box-sizing: border-box;
color: #ffffff;
cursor: pointer;
display: inline-flex;
font-size: 16px;
justify-content: center;
max-width: 15rem;
min-height: 2rem;
overflow: hidden;
padding: 0px;
padding-left: 1.25rem;
padding-right: 1.25rem;;
text-align: center;
touch-action: manipulation;
transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
user-select: none;
-webkit-user-select: none;
vertical-align: middle;
}
.button_primary:hover,
.button_primary:focus { 
background-color: rgb(123, 1, 1);
color: #ffffff;
} */


/* my devices css */
.floating-button {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 3.125rem; 
  height: 3.125rem; 
  background-color: #1d475f;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 4px rgb(0 0 0 / 58%);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.6s ease;
}
.floating-button:hover {
  opacity: 1;
  box-shadow: 0 8px 8px rgb(0 0 0 / 58%);
}
.floating-button::after {
  content: "Add new device";
  position: absolute;
  bottom: 50%;
  right: 120%; /* Position to the left of the button */
  transform: translateY(50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 12px;
  z-index: 1000;
}

.floating-button:hover::after {
  opacity: 1;
}

.my-device-body{
  padding: 1.2rem;
  width: 70%;
  margin: 0 auto;
}

.my-devices-section {
  padding-top: 3rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.device-card {
  border: 0.5px solid #ddd;
  position: relative;
  width: 100%;
  min-height: 5rem;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.device-card:hover,
.device-card:focus { 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%; /* Adjust the height of the blue top border */
  background: linear-gradient(90deg, #1d475f, #2F6C90);
}

.device-about{
  cursor: pointer;
  text-decoration: none;
  flex: 1;
}
.device-title {
  display: block;
  /* font-weight: bold; */
  /* cursor: pointer; */
  /* margin-bottom: 0.5rem;
  text-decoration: none;
  color: #1d475f; */
  text-decoration: none;
  color: #1d475f;
  transition: color 0.3s ease;
}


.device-desc {
  display: block;
  font-size: 1em;
  color: #666;
}
/* .iso-name {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 0.5rem;
} */
/* .iso-name a {
  text-decoration: none;
  color: #1d475f;
  transition: color 0.3s ease; 
} */

/* .iso-name a:hover {
  color: #2F6C90; 
} */
/* .iso-id, .iso-desc {
  font-size: 1em;
  color: #666;
} */

.device-options {
  margin-left: 3rem;
}
.device-options img {
  width: 1.25rem; 
  height: 1.25rem;
  cursor: pointer; 
}



/* device info - side nav menu */
#sidenav {
  position: fixed;
  left: 0;
  height: 100%;
  background-color: #1d475f;
  color: white;
  overflow-x: hidden;
  transition: width 0.2s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

#sidenav.collapsed {
  width: 4rem; /* Collapsed width */
}

#sidenav.expanded {
  width: 18%;
  min-width: 12rem;
}

/* Menu Icon */
#menu-icon {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid #87868685;
}

#menu-icon img {
  width: 1.5rem;
  height: 1.5rem;
}

#menu-icon .menu-title {
  margin-left: 1rem;
  font-size: 1.2rem;
  display: none; /* Hidden when collapsed */
}

#sidenav.expanded #menu-icon .menu-title {
  display: inline; /* Visible when expanded */
}

/* Sidenav Links */
#sidenav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 1rem;
}

#sidenav li {
  padding: 1rem;
  text-align: left;
}

#sidenav a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
}

#sidenav .icon {
  margin-right: 1rem;
}

#sidenav.collapsed .text {
  display: none; /* Hide text when collapsed */
}

.hidden {
  display: none;
}

.menu-item.active .text {
  color: white;
  font-weight: bold;
}

/* Main Content */
#main-content {
  position: relative;
  margin-left: 3.7rem; /* Default margin for collapsed sidenav */
  padding: 2rem;
  transition: margin-left 0.3s ease;
}

#sidenav.expanded ~ #main-content {
  margin-left: 18%; /* Adjust margin when sidenav is expanded */
}


/* chat css */
.chat {
  height: calc(100vh - 61px);
  width: 100%;
  /* margin: 20px; */
  display: flex;
  flex-direction: column;
  /* height: 650px; */
  border-top: 1px solid #ddd;
  /* border-radius: 10px; */
  background-color: #fff;
}


.prompt-options {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  align-items: flex-start; /* Left-align buttons */
  gap: 5px; /* 5px gap between each button */
  margin-bottom: 20px; /* 20px gap at the bottom */
}

.prompt-options-btn {
  width: 100%;
  padding: 10px 15px;
  font-size: 1em;
  color: #555;
  background-color: #f9f9f900;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.prompt-options-btn:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #f4f4f9ce; /* Slight color change on hover */
}


.chat-options {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
position: sticky;
top: 0;
z-index: 1000; 
/* border-bottom: 1px solid #ddd; */
padding: 15px;
display: flex;
}

#region-select{
margin-left: 4px;
border: none;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .chat-input {
  height: 15%;
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background-color: #f4f4f9;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-right: 10px;
} */

#send-btn {
  width: 50px;
  height: 50px;
  border: none; 
  border-radius: 50%; 
  background-color: #2F6C90; 
  display: flex; 
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
  margin-left: 10px; 
}

.send-icon {
  width: 24px;
  height: 24px; 
}


.message {
  text-align: left;
  max-width: 70%;
  padding: 25px;
  border-radius: 15px;
  font-size: 16px;
}

.bot-message {
  text-align: left;
  align-self: flex-start;
  background-color: #2F6C90;
  color: white;
}

.user-message {
  align-self: flex-end;
  background-color: #f1f1f1;
  color: #333;
}

.device-info-table{
  border-collapse: collapse;
}

.device-info-table td,
.device-info-table th {
  border: 1px solid white;
  padding: 8px;
}


/* Registration Page */

.body-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  background-color: white;
}

.body-container.active{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  background-color: #F1F6F9;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 40px auto;
  padding: 0 40px;
}

.step.active {
  border-radius: 100px;
  color: white;
  background-color: #2F6C90;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;;
  min-width: 150px;
  margin: 0.2rem;
  border-width: 0px;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  vertical-align: middle;
  }
.step.active:hover,
.step.active:focus { 
  background-color: #1d475f;
  color: #ffffff;
  }

.step{
  border-radius: 100px;
  color: #2F6C90;
  background-color: white;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;;
  min-width: 150px;
  margin: 0.2rem;
  border-width: 0px;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  vertical-align: middle;
  }
.step:hover,
.step:focus { 
  background-color: #F5F4F4;
  color: #2F6C90;
  }

.progress-line {
  height: 2px;
  background-color: #e2e8f0;
  flex-grow: 1;
  margin: 0 16px;
}

.form-container {
  background-color: #D9D9D94D;
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  width: 1200px;
  /* height: 600px; */
  margin: 0 auto;
  /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1); */
  display: flex;
  flex-direction: column;
  position: relative;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  margin: 0 50px;
  padding: 0 20px;
}


.header-form {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}

.header-form.active {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  background-color: white;
}

.primary-title {
  display: block;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #1d475f;
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

.cancel-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.x-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: white;
  color: #64748b;
  transition: all 0.2s ease;
}

.cancel-button:hover .x-mark {
  background-color: #e2e8f0;
  color: #0f172a;
}

.form-text {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 40px;
  font-size: 14px;
  line-height: 1.3;
  color: black;
  text-align: left;

}

.textarea-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

textarea {
  width: 100%;
  max-width: 1000px;
  height: 300px;
  padding: 16px;
  border: 1px solid fft;
  border-radius: 12px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: black;
  background-color: white;
  resize: none;
  transition: all 0.2s ease;
}

textarea::placeholder {
  color: #94a3b8;
}

textarea:focus {
  outline: none;
  border-color: #2F6C90;
  box-shadow: 0 0 0 3px rgba(47, 108, 144, 0.1);
}

.button-container {
  width: 100%;
  max-width: 800px;
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.next-button-form {
  margin: 32px 50px;
  max-width: 250px;
}
/* .next-button {
  position: absolute;
  bottom: 40px;
  right: 40px;
  border-radius: 100px;
  color: white;
  background-color: #2F6C90;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  min-width: 150px;
  margin: 0.2rem;
  border-width: 0px;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  vertical-align: middle;
  }
.next-button:hover,
.next-button:focus { 
  background-color: #1d475f;
  color: #ffffff;
  }  */
     
/* Registration Step 2 */

.properties-section {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin: 32px 50px;
  /* max-height: 300px; */
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 #F0F0F0;
}

.property-name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #2F6C90;
}

.info-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  cursor: help;
}

.tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  width: 500px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-top: 8px;
}

.info-wrapper {
  position: relative;
}

.info-wrapper:hover .tooltip {
  display: block;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prop-table {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
}

.prop-row {
  border-bottom: 1px solid #e5e7eb;
}

.prop-cell {
  padding: 16px;
}

/* Registration Page 3*/

.device-info-container {
  background-color: white;
  /* max-height: 350px; */
  border-radius: 12px;
  padding: 40px;
  margin: 32px 50px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1);
}

.review-row {
  display: flex;
  padding: 24px 0;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  /* max-height: 175px; */
}

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

.review-label {
  font-weight: thin;
  color: black;
  width: 120px;
  padding-top: 3px;
  flex-shrink: 0;

}

.review-content {
  flex-grow: 1;
  color: #2F6C90;
  font-weight: bold;
  line-height: 1.6;
  padding-right: 48px;
  text-align: left;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #F0F0F0 #2F6C90;
  width: 80%;
}

.properties-table {
  width: 60%;
  border-collapse: collapse;
}

.properties-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid black;
}

.property-label {
  color: #0f172a;
  width: 30%;
}

.property-value {
  color: #2F6C90;
  font-weight: bold;
  width: 30%;
}

.properties-table td:nth-child(1) {
  min-width: auto;
}

.properties-table td:nth-child(2) {
  min-width: auto;
}

.properties-table tbody {
  display: table-row-group;
  width: 60%;
}

.edit-button {
  position: absolute;
  right: 0;
  top: 24px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.edit-icon {
  width: 15px;
  height: 15px; 
}

/* Device Details - Risk Classification page */


.device-description-detail, .potential-risks-detail {
  color: #1d475f;
  text-align: left;
  padding: 0;
  margin-top: 40px;
}

.region-menu, .potential-risks-menu {
  display: flex;
  gap: 60px;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.region-menu-item, .potential-risks-menu-item {
  padding: 8px 0;
  font-size: 24px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  color: #2d4d5e8f;
  transition: all 0.2s;
}

.region-menu-item[data-selected="true"], .potential-risks-menu-item[data-selected="true"] {
  border-bottom: 2px solid #1d475f;
  color: #1d475f;
  font-weight: 500;
}


.content-page, .content-page-pr {
  display: none;
}

.content-page[data-active="true"], .content-page-pr[data-active="true"] {
  display: block;
  text-align: left;
}