/* Google Fonts  */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* Globals  */
* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* =============== Home Section =============== */

body::-webkit-scrollbar {
  display: none;
}

.loadingSpinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 5px; /* Adjust spacing */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wholeHeader{
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 999;
    background: #fff;
    border-bottom: 2px solid gray;
}

.headerText {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #475877;
    z-index:999;
    height:50px;
}

.headerText h1{
    color: white;
    z-index: 5;
    letter-spacing: 3px;
    font-size: 23px;
    display: grid;
    place-items: center;  /* Shorthand for centering both horizontally and vertically */
    text-align: center;     /* Full height (optional) */
}

.logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    width: 750px;
    height: 750px;
    z-index: -1;
}

.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    
}

.formContainer {
    display: flex;
    z-index: 5;
    margin-top: 130px;
    margin-left: 10px;
    margin-right: 10px;
}

#container-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    justify-content: space-evenly;
    border: 1px solid black;
    border-radius: 10px;
    margin-bottom: 5%;
    width: 150%;
}

.form1{
    position: relative;
    margin: 17px 8px 17px 17px;
    padding: 17px;
    display: flex;  
    border: 1px solid black;
    flex-direction: column;
    border-radius: 10px;
}

.form2{
    position: relative;
    padding: 10px;
    margin: 17px 17px 17px 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    border-radius: 10px;
}

.formSection{
    display: flex;
    flex-direction: row;
    margin-top: 5px;
}

.form-group-inline{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    width: 100%;
}


.form-group label, .form-group-inv label{
    margin-right: 5px;
    font-size: 0.6rem;
    margin-bottom: auto;
}

.form-group {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin-left: 20px;
  text-align: center;
}

.form-group-check {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 5px;
  text-align: center;
}

.form-group-check-par {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 5px;
  text-align: center;
}

.form-group-inv{
  width: 100%;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-left: 20px;
  text-align: center;
  font-size: 0.8rem;
}

.form-row {
    display: flex;
    width: 100%;
}

.form-row-header{
    display: flex;
    width: 100%;
    font-size: 0.9rem;
}

.form-row1 {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: row-reverse;
    font-size: 1rem;
    width: 100%;
}

p {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 4px;
}

.form-group-num{
    display: flex;
    flex-direction: column;
    width: 90%;
    justify-content: flex-start;
    margin-right: 20px;
}

.appnum{
    margin-right: 5px;
    width: 30px;
    height: 30px;
    border: 0.5px solid black;
    border-radius: 4px;
    text-align: center  ;
    background: #ECECEC;
}

.checkboxes{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 20px;
    height: 20px;
    margin-top: auto;
}

.checkboxes2{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transform: scale(2.0);
    margin-top: auto;
    margin-right: 20px;
}

input[type="checkbox"] {
    accent-color: black;
}

.names, .modal-button{
    display: inline-block;
    width: 100%;
    padding: 4px;
    margin-right: 5px;
    border: 1px solid black;
    border-radius: 5px;
}

.inputs{
    display: none;
    width: 100%;
    padding: 4px;
    margin-right: 5px;
    border: 1px solid black;
    border-radius: 5px;
}

.inputBtn{
    width: 40%;
    height: 30px;
    padding: 4px;
    margin-right: 5px;
    border: 1px solid black;
    border-radius: 5px;
    text-overflow: ellipsis;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.inputBtn:hover{
    background-color: #475877;
    color: white;
}

.flatpickr-input {
    font-size: 13px;
}

.flatpickr-input::placeholder {
    font-size: 12px;
    color: gray;
}


.invalid-checkbox {
    outline: 2px solid red;
}

.invalid-checkbox1 {
    outline: 1px solid red;
}

.row-file{
  width: 60%;
  height: 100%;
  margin-right: 75px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 5px;
  text-align: center;
  font-weight: bold;
}

.row-file label{
    width:60%;
    max-width: 140px;
    font-size: 0.9rem;
}

ul li{
    list-style-type: circle;
}

.names::placeholder{
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

input[type=text]:focus{
    border: 1.8px solid #475877;
    outline: none;
}

.file-row{
    display: flex;
    width: 100%;
    padding: 3px;
    margin-right: 5px;
    border: 1px solid black;
    border-radius: 5px;
}

.camera-container {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;  
      border: 1px solid #475877;
      border-radius: 3px;
      font-size: 0.8rem;
      overflow: hidden;
}

#gridCamFormat {
   display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.camera-container2 {
      font-size: 0.8rem;
      text-align: center;
      margin-top: 70px;
}

.anchors{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #7AA2C4;
    text-decoration: none;
    color: #FFFAF6;
    width: 100px;
    height: 30px;
    padding-top: 4%;
    border: 2px solid #2E3140;
    border-radius: 6px;
}

.camera-container2 button{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #7AA2C4;
    text-decoration: none;
    color: #FFFAF6;
    width: 100px;
    height: 30px;
    margin-left: 10%;
    padding-top: 4%;
    border: 2px solid #2E3140;
    border-radius: 6px;
}

.camera-container2 a:hover, .camera-container2 button:hover{
    background-color: #7F9AD4;
    border: 2px solid #455185;
    color: #141103;
    font-weight: bold;
    max-width: 100px;
}

.camera-container2 a:focus, .camera-container2 button:focus{
    opacity:0.8;
    text-decoration: none;
    color: white;
}


#my_camera video {
    transform: scaleX(1);
  }
  
#backAni{
    text-align: center;
    text-decoration: none;
    color: black;
}
      
.modal-button, button[type=submit], #backAni{
    background-color: white;
    width: 20%;
    transition: background-color, color, 0.2s ease-in;
    height: 30px;
}
      
.modal-button:hover, button[type=submit]:hover, #backAni:hover{
    background-color: #475877;
    color: white;
    border: 2px solid #282d36;
}

.text-design{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

.form-row3 {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.call .tooltiptext {
  visibility: hidden;
  width: 240px;
  color: black;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: 10%;
  right: 27%;
}

.call:hover .tooltiptext {
  visibility: visible;
  
}

.imagecam{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index:997;
    top: 6%;
    width: 145px;
    height: 217px;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.custom-modal::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.custom-modal {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* The Modal (background) */
.custom-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

/* Modal Content */
.custom-modal-content {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin: 1% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
    height: 98%;
    overflow-y: auto; /* Scroll if content is too tall */
}

/* Modal Header */
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

/* Modal Title */
.custom-modal-title {
    font-size: 18px;
    font-weight: bold;
}

/* Close Button */
.custom-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Change color on hover */
.custom-modal-close:hover,
.custom-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Body */
.custom-modal-body {
    padding: 20px 0;
    height: 100%;
}

#previewContent{
    height: 100%;
}

/* Modal Footer */
.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e5e5e5;
    padding-top: 10px;
    text-align: center;
}

.invalid-input {
    border: 2px solid red;
}

/*other modal*/
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 4px;
    width: 60%;
    max-height: 600px;
    background-color: white;
    position: relative;
}

.close {
    position: absolute;
    right: 3px;
    top: -2px;
    cursor: pointer;
    font-size: 40px;
}

.drop-area {
    margin-top: 20px;
    width: 100%;
    height: 100px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.drop-area.dragging {
    background-color: #f0f0f0;
    border-color: #666;
}

.file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    font-size: 12px;
}

.file-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-item .remove-file {
    position: absolute;
    top: -5px;
    right: -5px;
    cursor: pointer;
    font-size: 16px;
    color: red;
    background: none;
    border: none;
}

.file-item .file-name {
    font-size: 7px;
    margin-top: 3px;
    text-align: center;
    overflow: hidden;              /* Hide overflowed text */
    white-space: nowrap;          /* Prevent text wrapping */
    text-overflow: ellipsis;      /* Add ellipsis for overflowed text */
    max-width: 70px;              /* Set a max width to control the truncation */
}



@media only screen and (max-width: 1098px) {
  .headerText h1 {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 800px) {
  .headerText h1 {
    font-size: 0.7rem;
  }
}

@media only screen and (max-width: 660px) {
  .form-group-check label{
    font-size: 0.7rem;
  }
  .form-group p{
    font-size: 0.7rem;
  }
  .form-group-check-par label {
    font-size: 0.7rem;
  }
  .form1, .form2{
      margin: 17px;
  }
  .form2 .formSection{
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

}

@media only screen and (min-width: 660px){
    .form2 .formSection{
        justify-content: center;
        align-items: flex-start ;
  }
}

@media only screen and (max-width: 1258px) {
  .form-group-check label, .form-group p{
    font-size: 0.8rem;
  }
  .form-group-check-par label {
    font-size: 0.8rem;
  }
  .form1, .form2{
      margin: 17px;
  }
}




