/* 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;
}

body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* =============== content section =============== */

.custom-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
    cursor: pointer;
  }

  .custom-dropdown .dropdown-label {
    font-weight: bold;
    padding: 6px 12px;
    cursor: pointer;
    min-width: 200px;
  }

  .custom-dropdown .dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; /* LEFT CORNER ALIGNMENT */
    z-index: 10;
    background: white;
    border: 1px solid #ccc;
    min-width: 200px;
  }

  .custom-dropdown .dropdown-options div {
    padding: 6px 12px;
    cursor: pointer;
    text-align: left;
  }

  .custom-dropdown .dropdown-options div:hover {
    background-color: #f1f1f1;
  }

.collapsible-horizontal {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        height: fit-content;
        margin-right: 10px;
        border-radius: 4px;
        font-weight: bold;
    }

    .collapsible-panel {
        width: 100%;
        max-width: 230px;
        overflow: hidden;
        transition: max-width 0.3s ease;
        white-space: nowrap;
    }

    .collapsible-panel.open {
        max-width: 0; /* adjust to your needed width */
        white-space: normal;
    }

    .container {
        display: flex;
        align-items: flex-start;
    }


    .form-group {
        margin-bottom: 10px;
    }

    label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
    }

    input, select, textarea {
        width: 100%;
        padding: 6px;
        box-sizing: border-box;
    }

label.hidden-label {
    visibility: hidden;
    display: block;
    height: 1.5em; /* Keep the height same as visible label for alignment */
}

.delete-btn{
    background: none;
    color: red;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.navBarPDF{
    background: #323639;
    width: 100%;
    height: 50px;
    padding: 0 6px 0 6px;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.sigBtnForAutoSign{
    background: none;
    color: lightgray;
    border-radius: 50%;
    border: none;
    margin: 2px;
    padding: 10px;
    transition: transform 0.1s ease-in;
}

.sigBtnForAutoSign:hover{
    color: white;
    background: rgba(255,255,255,0.1);
    transform: scale(1.2);
}

.sigBtnForAutoSign:active{
    transform: scale(1);
}

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); }

.modal-content { 
    background-color: #fff;
    margin-top: 2%;
    margin-left: 10%;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: 92%;
    position: relative;
    border-radius: 10px; 
}


.close { position: absolute; top: 10px; right: 20px; font-size: 30px; cursor: pointer; }


.contentWrapInner {
    background: #ecf0f5; 
    width: 100%; 
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container{
    position: relative;
    width: 100%;
    height: 84vh;
    background: white;
    display: flex;
    align-items: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.buttonPadding{
    margin: 2px 10px 2px 10px;
}

.mimicHeaderTitle{
    width: 99%;
    height: 75%;
    color: white;
    background: #475877;
    margin:8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px black;
    letter-spacing: 3px;
    font-size: max(2vw, 16px);
}

.actionContainers{
    width: 100%;
    height: 100%;
    margin: 0 5px 0 5px;
    padding: 6px;
    border: 2px solid #475877;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.actionContainers2 {
    width: 100%; /* or any desired width */
    height: 82vh;
    padding: 6px;
    margin: 0 5px;
    border: 2px solid #475877;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.contentWrap {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.contentWrap .formHeader {
    width: 100%;
    padding: 10px 0px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: rgb(140, 140, 190);
}

/* Style the header */
#selectHeader {
    width: 25%; /* Make it full width */
    margin-top: 15%;
}

/* Style the dropdown container */
#hideAfterChoosing {
    width: 100%; /* Full width */
    max-width: 400px; /* Match form size */
    margin: 10px auto; /* Center */
    text-align: center; /* Align text */
}

/* Style the select dropdown */
#qcpType {
    width: 100%; /* Full width */
    max-width: 300px; /* Adjust dropdown size */
    padding: 8px; /* Add padding */
    font-size: 1.2rem; /* Increase font size */
    border: 2px solid #007bff; /* Add blue border */
    border-radius: 5px; /* Rounded edges */
    background-color: #ffffff; /* White background */
    cursor: pointer; /* Show pointer */
}


textarea{
    border: none;
}

.back {
    width: 100px;
    height: 34px;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    background: #dd0004;
    border: none;
}

.back:hover,
.back:focus {
    color: #dd0004;
    background-color: #fff;
    border: 1px solid #dd0004;
    cursor: pointer;
}

.button-field .submit {
    width: 100px;
    height: 34px;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    background: #04aa6d;
    border: none;
}

.button-field .submit:hover,
.button-field .submit:focus {
    color: #04aa6d;
    background-color: #fff;
    border: 1px solid #04aa6d;
    cursor: pointer;
}

.preview {
    width: 100px;
    height: 34px;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    background: #04aa6d;
    border: none;
}

.preview:hover,
.preview:focus {
    color: #04aa6d;
    background-color: #fff;
    border: 1px solid #04aa6d;
    cursor: pointer;
}


.save {
    width: 100px;
    height: 30px;
    text-align: center;
    color: #fff;
    border-radius: 3px;
    background: #2b8fed;
    border: none;
    margin-left: 90%;
}

.contentWrap form {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: rgb(255 255 255 / 74%);
}

.tableInner .table {
    width: 100% !important;
    text-align: left;
    font-size: 18px;
    overflow-x: scroll;
    border-collapse: collapse;
}
.table thead tr{
    width: 150%;
}
.table thead tr th {
    font-size: 12px;
    padding: 10px 5px !important;
    border: 1px solid black;
    background: #475877;
    color: #fff;
}

.table tbody tr td {
    font-size: 10px;
    padding: 1px 1px !important;
    text-align: center !important;
    border: 1px solid black;
}

textarea{
    min-height: 35px;
}

form .formContent {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: right;
}

.formContent .form-group {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    flex-direction: column;
}


.form-group textarea {
    border: 1px solid black; /* Correct way to set a border */
    width: 100%; /* Ensures it takes the full width of its container */
    min-height: 100px; /* Sets a minimum height */
    resize: none; /* Prevents manual resizing */
    padding: 5px; /* Adds padding for better appearance */
    border-radius: 5px;
    font-size: 13px;
}

.form-group select,
    .form-group input[type="date"] {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
        background-color: #fff;
        transition: border-color 0.3s ease;
    }

    .form-group select:focus,
    .form-group input[type="date"]:focus {
        border-color: #66afe9;
        outline: none;
        box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
    }

#file {
  display: none;
}

.form-group label,
.form-file label {
  width: 100%;
  font-size: 12px;
}
.form-group input {
  width: 100%;
  height: 35px;
  padding: 3px 7px;
  font-size: 15px;
  border-radius: .25rem;
  border: 1px solid grey;
}
form .formContent .form-file {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: left;
}
form .formContent .form-btn {
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px
}

.form-btn input {
  width: 30%;
  height: 35px;
  padding: 3px 7px;
  font-size: 15px;
  border-radius: 5px;
  cursor: pointer;
}

.Cancel {
    color: #fff;
    background: gray;
}

.Preview {
    color: #fff;
    background: green;
}

.Submit {
    color: #fff;
    background: #2b8fed;
}

/* General Styling */
.form-group {
    margin-bottom: 5px;
}

.addremove{
    width: 100%;
}

/* Dropdown Styling */
#qcpType {
    width: 100%;
    max-width: 300px; /* Adjust width as needed */
    padding: 10px;
    font-size: 16px;
    border: 2px solid #007bff; /* Blue border */
    border-radius: 5px;
    background-color: #f8f9fa; /* Light gray background */
    color: #333;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Hover & Focus Effects */
#qcpType:hover,
#qcpType:focus {
    border-color: #0056b3; /* Darker blue on focus */
    background-color: #fff;
}

/* Dropdown Arrow */
#qcpType {
    appearance: none; /* Hide default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23007bff" d="M2 5L0 0h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1px;
    padding-right: 30px; /* Space for custom arrow */
}


.content form {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 5px;
}

.form-header {
    width: 100%;
    padding: 10px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: rgb(140, 140, 190);
}

.form-body {
    width: 100%;
    padding: 25px;
    display: flex;
    gap: 0.5em;
    flex-direction: row;
    justify-content: flex-start;
    background-color: rgba(190, 212, 247, 0.741);
}

.form-body .input-field {
    width: 40%;
    height: 100%;
    display: flex;
    gap: 1em;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.input-field .input-group {
    width: 100%;
    display: flex;
    gap: 0.3rem;
    flex-direction: row;
    justify-content: flex-start;
}

.input-field .input-wrap {
    width: 100%;
    display: flex;
    gap: 0.3rem;
    flex-direction: column;
    justify-content: flex-start;
}

.input-wrap label {
    width: 100%;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    font-family: Poppins, sans-serif;
}

.input-wrap select {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    font-family: Poppins, sans-serif;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    appearance: none; /* Removes default OS styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.input-wrap select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

.input-wrap input {
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.input-wrap #upload {
    display: none;
}

.input-wrap .upload {
    width: 100%;
    height: 34px;
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 2.6;
    text-align: center;
    border-radius: 3px;
    background-color: #2b8fed;
    border: none;
}

.input-wrap .upload:hover,
.input-wrap .upload:focus {
    color: #2b8fed;
    background-color: #fff;
    border: 1px solid #2b8fed;
    cursor: pointer;
}

.input-wrap span {
    width: 100%;
    color: #495057;
    font-size: 11px;
    font-weight: 500;
    font-family: Poppins, sans-serif;
    text-align: center;
}

.form-body .preview-field  {
    width: 70%;
    height: 100%;
    display: flex;
    gap: 1em;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.form-btn {
    width: 100%;
    padding: 20px;
    display: flex;
    gap: 0.5em;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: rgba(190, 212, 247, 0.741);
}

.form-btn .submit {
    width: 100px;
    height: 34px;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    background: #04aa6d;
    border: none;
}

.form-btn .submit:hover,
.form-btn .submit:focus {
    color: #04aa6d;
    background-color: #fff;
    border: 1px solid #04aa6d;
    cursor: pointer;
}

.form-btn .back {
    width: 100px;
    height: 34px;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    background: #808080;
    border: none;
}

.form-btn .back:hover,
.form-btn .back:focus {
    color: #808080;
    background-color: #fff;
    border: 1px solid #808080;
    cursor: pointer;
}

/* ============ Responsive / Breakpoints ========== */
/* Target MacBook Air-style viewport (~1280px wide) */
@media (min-width: 1260px) and (max-width: 1300px) {
  body {
    background-color: #f5f5f5;
    font-size: 18px;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  header {
    font-size: 2rem;
    color: #333;
  }
}


/* Large desktops (1440px and above) */
@media (max-width: 1440px) {
  /* Adjust layout, fonts, etc. for large desktops */
}

/* Standard laptops (1366px) */
@media (max-width: 1366px) {
  /* Most common screen size for laptops */
}

/* Medium laptops (1280px) */
@media (max-width: 1280px) {
  /* Slightly smaller laptop screens */
}

/* Compact laptops / small monitors (1024px) */
@media (max-width: 1024px) {
  /* Adjust for smaller screens — consider stacking sidebars, etc. */
}

/* Tablets in landscape or very small laptops (900px and below) */
@media (max-width: 900px) {
  /* Start transitioning layout to mobile/tablet-friendly */
}

/* Phones in landscape / very small displays */
@media (max-width: 768px) {
  /* Hide sidebars, shrink navs, etc. */
}

/* Phones (portrait mode) */
@media (max-width: 480px) {
  /* Simplify everything, full-width inputs, single-column layout */
}
