/* formDesignPage.css */

.formDesignPage {
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 100vh;
    /* border: dashed 1px #1C2D8A !important; */
    width: 100%;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
  }
  .designImage {
    width: 20%;
    height: auto;
  }
  .formHeader {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 16px 14px;
    background-color: #e6f0ff;
    color: #ffffff;
    border-bottom: 1px solid #e6f0ff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* margin-top: -100px; */
  }
  /* .verticalLine{
     width: "1px";height: "30px";
     background-color: #959595;
     color: #959595;
      margin: "0 10px";
  } */
  .deviceIcons {
    font-size: x-large;
    color: gray; /* Default gray color */
    transition: color 0.3s ease; /* Smooth transition */
  }
  
  .deviceIcons:hover {
    color: #1C2D8A; /* Change to blue on hover */
  }
  
  .formHeader h2 {
    font-size: 20px;
    margin: 0;
  }
  /* .formTabs {
    display: flex;
    width: 30%;
    flex-direction: row;
    justify-content: space-between;
    
  } */
  .formTabs {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: auto; /* Adjust width dynamically */
    min-width: 300px; /* Prevent it from shrinking too much */
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
  .formTabs button {
    background: none;
    border: none;
    color: #121617;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
  }
  .formTabs button:hover {
    background: #34495e;
  }
  .formActions {
    display: flex;
    gap: 12px;
  }
  .formActions button {
    background-color: #DAE5FF;
    border: none;
    color: #2c3e50;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .formActions button:hover {
    background-color: #bdc3c7;
  }
  .publishButton {
    background-color: #1C2D8A !important;
    color: #ffffff !important;
    font-weight: bold !important;
  }
  .publishButton:hover {
    background-color: #1C2D8A;
  }
  .formContent {
    display: flex;
    justify-content: center;
    align-items: baseline;
    width: 100%;
    flex-grow: 1;
    padding: 20px;
    text-align: center;
  }
  .designPlaceholder {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: 100%;
    gap: 16px;
    
    background-color: #fff;
    padding-top: 0px !important;
    padding: 16px;
    width: 100%;
    /* padding-top: 100px; */
    /* margin-left: 60px; */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  .designPlaceholder img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    padding-top: 80px; /* Add top padding */
  }
  
  .designPlaceholder p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
  }
  .startDesignButton {
    background-color: #1C2D8A !important;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .saveButtonWrapper {
    position: absolute;
    right: 15px;
    top: 5px;
    display: flex;
    gap: 10px;
  }
  .formName{
    color: #343C6A;
    font-weight: bold;
  }
  .formButton{
    color: #64748B !important;
    font-weight: bold !important;
    font-size: small !important;
  }
  .formButton:hover{
    color: #1C2D8A !important;
    background-color: #ffffff !important;
    font-weight: bold !important;
    font-size: small !important;
  }
  .startDesignButton:hover {
    background-color: #2980b9;
  }
  
  
/* Container Layout */
.dashboard-wrapper {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  height: 80vh;
}
img.pointer {
  cursor: pointer !important;
}

.startpdfButton {
  background-color: #1C2D8A !important;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dashboard-container {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.button-container {
  display: flex;
  gap: 20px;
  margin: 10px 0;
  width: 100%; /* Ensure button container takes up full width */
  justify-content: center; /* Center the buttons inside the container */
}
/* Buttons */
.custom-button {
  background-color: #E9ECEF;
  color: #1C2D8A;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  width: 250px; /* Fixed width */
  height: 80px; /* Fixed height */
  box-sizing: border-box; /* Ensures padding is included in the width/height calculation */
  border: none; /* This removes the default border */
}

.custom-button:focus {
  outline: none; 
  border: 1px dashed #1C2D8A; /* Only appears on focus */
  background-color: #DAE5FF;
  box-shadow: 0 0 8px rgba(28, 45, 138, 0.3); 
}

.custom-button:hover {
  transform: translateY(-2px);
  border: 1px dashed #1C2D8A; /* Only appears on hover */
  background-color: #DAE5FF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.heading-container {
  display: flex;
  align-items: center; /* Vertically align heading and curve */
  position: relative;
}

.blue-vertical-curve {
  width: 6px; /* Adjust width for a thin vertical bar */
  height: 40px; /* Height of the curve (adjust as needed) */
  background-color: #1346b8; /* Blue color */
  border-top-right-radius: 4px; /* Curved top-right corner */
  border-bottom-right-radius: 4px; /* Curved bottom-right corner */
  margin-right: 10px; /* Space between the curve and heading */
  margin-top: 10px; /* Add top margin */
}


.sidebar-header-c h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.sidebar-c {
  width: 350px;
  background-color: #ffffff;
  border-left: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: auto;
  right: -300px; /* Initially hidden */
  height: 100%;
  z-index: 1000;
  padding: 0px;
  display: flex;
  flex-direction: column;
  animation: slideInFromRight 0.3s ease-out forwards;
}

@keyframes slideInFromRight {
  from {
    right: -300px;
  }
  to {
    right: 0;
  }
}

.sidebar-header-c {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sidebar-header-c h2 {
  font-size: 17px;
  font-weight: bold;
  padding-top: 13px;
  text-align: center; /* Horizontally center the text */
}


.close-button {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #212121;
  position: absolute; /* Ensure positioning within the container */
  top: 11px; /* Set top to 0 */
  right: 25px; /* Optional: Align to the top-right corner */
}

/* Status Items */
.sidebar-content-c {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
 
  
}


.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-circle {
  width: 20px;
  height: 20px;
  background-color: #4caf50; /* Green */
  border-radius: 50%;
}

.status-item input {
  flex: 1 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.status-action {
  background: none;
  align-self: center;
  border: none;
  cursor: pointer;
  font-size: 16px;
  /* color: #1d4ed8; */
}

.add-status-button {
  background-color: transparent;
  color: #1C2D8A;
  border: 2px dashed #1C2D8A; 
  padding: 10px 20px;
  border-radius: 4px;
  font-family: sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.add-status-button:hover {
  background-color: #1C2D8A; 
  border: 2px dotted #1C2D8A; /* Darker border on hover */
  color:#ffffff;
}


/* Hide the default file input */
input[type="file"] {
  display: none;
}

.selectable {
  background-color: #ffffff;
  position: relative; /* To ensure children with absolute positioning stay within */
  overflow: hidden; /* To prevent overflow if necessary */
}


.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; 
  gap: 40px;
  padding: 20px;
}


.file-icon {
  font-size: 118px;
  gap: 40px;
  color: darkorange;
}

.file-overlay {
  position: absolute;
  bottom: 13px;
  left: 4px;
  right: -4px;
  text-align: left;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  height: 120px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}


.file-item:hover .file-overlay {
  opacity: 1;
}
.select-btn-pdf {
  background: transparent;
  color: white;
  padding: 5px, 14px;
  cursor: pointer;
  margin-left: 11px;
  margin-right: 4px;
  margin-bottom: 9px;
  margin-top: 2px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid white;
}

.modal-container {
  width: 60vw;
  max-height: 80vh;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
  overflow: hidden; 
  position: relative;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  overflow-y: auto; 
  max-height: calc(80vh - 80px); 
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #f8f8f8;
}

.image-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.pdfModal div[style*="background: rgb(255, 77, 79)"] {
  background: #1C2D8A !important;
}

/* General page styling */
.pageContainer {
  display: flex;
  height: 100vh;
  font-family: 'Arial', sans-serif;
  background-color: #f9fafb;
}

/* Layout styles */
.layout {
  display: flex;
}

/* Sidebar container */
.sidebarForm {
  /* width: 250px;  */
  height: calc(100vh - 60px);
  /* Limit height to header level */
  background-color: #fff;
  /* Light background */
  padding: 13px;
  max-height: 100vh;
  /* Set the maximum height of the container */
  overflow-y: auto;
  scrollbar-width: thin;
  /* border-right: 1px solid #e5e7eb; */
  margin-left: 5px; 
  /* margin-right: 0px; */
  /* Subtle border */
  /* Keep it aligned with the header */
  /* Adjust based on your header height */
}

/* Sidebar content */
.sidebarContent {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: -12px;
  margin-right: -5px;
}

.publishButton {
  background-color: #1C2D8A !important;
  color: #ffffff !important;
  font-weight: bold !important;
}

.previewIcons {
  border-color: "#959595" !important;
  display: "flex" !important;
  flex-direction: "row" !important;
  border: "solid" !important;
  border-width: "1px" !important;
  border-color: #959595 !important;
  justify-content: "center" !important;
  align-items: "center" !important;
  padding: "3px"
}


.searchField {
  flex: 1 1;
  border: none;
  outline: none;
  padding: 3px 10px;
  /* Adjust padding to control height */
  font-size: 14px;
  /* Set font size for consistency */
  border-radius: 20px;
  /* Match container's border radius */
}

.formList li {
  padding: 5px 3px !important;  
  margin: -5px 0 !important;    
  
 
}

/* Master card */
.masterCard {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 38px !important;
  background-color: #ffffff;
  /* White background */
  border: 1px solid rgb(232, 232, 232);
  /* Light border */
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  padding:  0px 10px;
  /* Spacing inside */
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin: 3px 0;
 
  /* Spacing between cards */
}

.iconSize {
  display: flex;
  font-size: medium;
  cursor: pointer;
  color: #71757E;
}

.topBarIconSize {
  font-size: medium;
  cursor: pointer;
}

.dragDropContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Ensures the container takes up all available height */
  overflow: hidden;
  /* Prevent content from overflowing outside */
}

.formBuilderContainer {
  flex-grow: 1;
  /* Allow this container to grow and take the available space */
  /* overflow-y: auto; */
  /* Makes the content scrollable if it overflows */
  padding: 5px;
  /* Optional padding to give some spacing */
  border: 1px solid #ccc;
  /* Optional border around the form builder */
  overflow: hidden;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: .1rem;
  margin-left: 28px;
}

h1 {
  color: #fff
}

/* Create form button */


/* .createFormButton:hover {
  background-color: #3B82F6;
  /* Darker hover color */
 

/* Main container styling */
.mainContainer {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

/* Header styling */
.header {
  background-color: #1C2D8A;
  padding: 10px 20px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projectName {
  margin: 0;
  font-size: 20px;
}

.headerButtons {
  display: flex;
  align-items: center;
}

.addUsersButton {
  background-color: transparent;
  border: solid;
  border-width: 1px;
  color: #ffffff;
  border-color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

.menuButton {
  background-color: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* Content styling */
.content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: baseline;
  align-items: center;
  text-align: center;
  background-color: #F7F9FF; /* Light background color */
}


.imageContainer {
  margin-top: 70px;
  margin-bottom: 20px;
}

.image {
  width: 300px;
  height: auto;
}

.message {
  font-size: 18px;
  color: black;
  margin-bottom: 20px;
}

.createFormButton {
  background-color: #1C2D8A;  /* Deep blue background */
  color: #ffffff;  /* White text */
  border: none;
  padding: 10px 20px;  /* Increased padding for better clickability */
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;  /* Slightly larger text */
  transition: none;  /* No transition */
}



.modalContainer {
  background-color: white;
  padding: 10px;
  max-width: 600px;
  margin: 100px auto;
  /* border-radius: 10px; */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pdfModalContainer {
  background-color: white;
  padding: 10px;
  max-width: 1024px;
  margin: 100px auto;
  /* border-radius: 10px; */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modalContainer1 {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 10px;
  padding-top: 12px;
  max-width: 400px;
  width: 100%; /* Make it responsive */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: fixed; /* Fix the popup in the middle of the viewport */
  top: 50%; /* Vertically center */
  left: 50%; /* Horizontally center */
  transform: translate(-50%, -50%); /* Adjust for element's size */
  z-index: 1000; /* Ensure it's above other content */
}

.modalContent {
  width: 80%;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 22px;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px; /* Adjust padding for consistency */
  position: relative; /* Required for absolute positioning of the close button */
}


.closeButton {
  font-size: 28px;
  cursor: pointer;
  border: none;
  background: transparent;
  position: absolute;
  top: 0px;
  right: 10px;
  color: black; /* Gray color */
}

.closeButtonform {
  font-size: 25px;
  cursor: pointer;
  border: none;
  background: transparent;
  position: absolute;
  top: -10px; /* Adjust the position from the top */
  right: 0px; /* Adjust the position from the right */
  color: black;
}

.modalHeaderDivider {
  margin: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.newFormOptions {
  display: flex;
  justify-content: space-around;
  /* margin-top: 20px; */
}

.newFormOptionBox {
  text-align: center;
}

.optionButton {
  background: #ffffff;
  color: #1e3a8a;
  padding: 10px;
  border: 1px solid #d1d5db;
  /* border-radius: 10px; */
  width: 150px;
  height: 140px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.optionButton:hover {
  background: #e5effa;
  border-color: #1C2D8A;
}

.formIcon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.formNameInput {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 10px;
}
.inputBox {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: white;
  width: 100%;
  margin-top: 10px;
}

.iconContainer {
  /* margin-right: 10px; */
  font-size: 18px;
  color: #333; /* Adjust icon color */
}

.inputField {
  flex: 1 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.continueButton {
  background-color: #1C2D8A;
  color: white;
  padding: 8px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  /* margin-left: 120px; */
}


.sidebarContent .formList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.formListContainer {
  height: 10% !important;
  /* Enable vertical scrolling when content overflows */
  background-color: #ffffff;
  /* Card background color */
  border: 1px solid rgba(222, 222, 222, 1) !important; 
  /* Border for the card */
  border-radius: 2px;
  /* Rounded corners */
  margin: 5px 0;
  /* Margin for spacing */
  scrollbar-width: thin;
}

.formListContainer.selected{
  /* Enable vertical scrolling when content overflows */
  background-color: #ffffff;
  height: 10% !important;
  /* Card background color */ 
   border: 1px solid rgba(59, 130, 246, 1) !important; 
   border-radius: 2px;
   /* Rounded corners */
   margin: 5px 0;
   /* Margin for spacing */
   scrollbar-width: thin;
}

.searchContainer {
  position: relative;
  max-width: 300px;
  /* Adjust as needed */
  width: 100%;
  display: flex;
  border-radius: 20px;
  align-items: center;
}

.searchField {
  width: 100%;
  /* Left padding to make space for the icon */
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.searchIcon {
  position: absolute;
  left: 10px;
  /* Position icon inside the input border */
  color: #888;
  font-size: 16px;
  pointer-events: none;
  /* Make sure the icon does not block typing in the input */
}

/* .sidebarContent .formItem {
    margin-bottom: 10px;
  } */
.sidebarContent .formNameButton {
  background: none;
  border: none;
  color: #4A4444;
  font-size: 12px;
  cursor: pointer;
  /* padding: 5px 4px; */
  text-align: left;
  /* width: 100%; */
}

.sidebarContent .formNameButton:hover {
  /* text-decoration: underline; */
  background-color: #F7F9FF;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); Box shadow on hover */
}

.sidebarContent .formNameSelected {
  background: none;
  border: none;
  color: #4A4444;
  background-color: #F7F9FF;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 0;
  text-align: left;
  width: 100%;
}

.backButton {
  margin-top: 5px;
  margin-bottom: 5px;
  align-self: flex-end;
  /* Aligns the button to the right */
  background-color: #1C2D8A;
  color: white;
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.formHeader {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  background-color: #DAE5FF;
  color: #ffffff;
  border-bottom: 1px solid #e6f0ff;
   box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); 
  /* margin-top: -100px; */
}

.formButton {
  color: #64748B !important;
  font-weight: bold !important;
  font-size: small !important;
}

.formButton:hover {
  color: #1C2D8A !important;
  background-color: #ffffff !important;
  font-weight: bold !important;
  font-size: small !important;
}

.formButton.active {
  color: #1C2D8A !important;
  background-color: #ffffff !important;
  font-weight: bold !important;
  font-size: small !important;
}

.formTabs {
  display: flex;
  width: 20%;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px; 
  font-size: 16px;
}

.formTabs button {
  background: none;
  border: none;
  color: #121617;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.formTabs button:hover {
  background: #34495e;
}

.formActions {
  display: flex;
  gap: 12px;
  padding: 0px;
  margin-right: 0.9rem;
} 

.pdfModal {
  scrollbar-width: thin !important;
  scrollbar-color:  #f0f0f0 !important;
}

.pagedesign {
  padding: 0rem !important;
  width: 100% !important;
}




.verticalDivider {
  width: 1px;
  height: 24px; /* Adjust height to match the input field */
  background-color: #ccc;
  margin-left: 0px;
  margin-right: 8px;
}


