:root { /*Defalut color scheme*/
    --color-bg: #f4f4f4;
    --color-windows: #fff;
    --color-text: #333;
    --color-behind-text: #dddddd;
    --color-header: #4CAF50;
    --color-checkboxes: #ff00c8;
    --color-button: #a1ffa6;/*#00c020;*/

    --color-tableborder: #dee2e6;
    --color-tableback1:#fff;
    --color-tableback2:#f8f9fa;
}

[data-theme="light"] {
    --color-bg: #f4f4f4;
    --color-windows: #fff;
    --color-text: #333;
    --color-header: #4CAF50;
    --color-checkboxes: #0c8f00;
    --color-button: #a1ffa6;
  }
  
[data-theme="dark"] {
--color-bg: #000000;
--color-windows: #1b1b1b;
--color-text: #ebe7f1;
--color-behind-text: #333;
--color-header: #271933;
--color-checkboxes: #cd98ff;
--color-button: #71528f;

--color-tableborder: #6b6b6b;
--color-tableback1:#1d1d1d;
--color-tableback2:#242424;
}

body {
    margin: 0;
    font-family: Arial, sans-serif; /* Set a default font for the page */
    background-color: var(--color-bg); /* Light background color for the body */
    color: var(--color-text); /* Default text color */
}

.header-bar {
    text-align: center;
    background: var(--color-header); /* Changed to a green background for better contrast */
    color: rgb(75, 49, 49);
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    width:100%;
    height:10%;
    margin-bottom:10px;
    padding-bottom:6px;
}

.header-bar-grey {
    background: rgb(94, 94, 94); /* Changed to a green background for better contrast */
    width:100%;
    display: flex;
}

.logo-gov {
  max-height: 80px;
}
.logo-gov-back {
  height: 92px;
  width: 105px;
  background-color: rgb(138, 96, 174);
  padding: 0px;
  padding-top: 6px;
  margin-left: 16px;
}
.logo-scsa {
  max-height: 70px;
}
.logo-scsa-back {
  max-height: 80px;
  padding-top: 13px;
  margin-left: auto;
  margin-right: 40px;
}

/*https://stackoverflow.com/questions/22252472/how-can-i-change-the-color-of-an-svg-element*/
.filter-white{
    width:20px;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(92deg) brightness(106%) contrast(104%)
    /*drop-shadow(-1px -1px 1px black)
    drop-shadow(1px -1px 1px black)
    drop-shadow(1px 1px 1px black)
    drop-shadow(-1px 1px 1px black)*/

    /*drop-shadow(0px 1px 0px var(--color-header))
    drop-shadow(0px -1px 0px var(--color-header))
    drop-shadow(1px 0px 0px var(--color-header))
    drop-shadow(-1px 0px 0px var(--color-header))*/
}

#header-image {
    position: relative; /* Ensure the top positioning works */
    top: 0px;
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
}

.footer-bar {
    position: fixed;
    text-align: center;
    background: var(--color-header); /* Changed to a green background for better contrast */
    width:100%;
    height:24px;
    bottom: 0px;
    padding: 2px;
}

.container {
    max-width: 1200px; /* Limit the width for better readability */
    margin: 0 auto; /* Center the container */
    margin-top:10px;
    padding: 20px; /* Add padding around the content */
    background-color: var(--color-windows); /* White background for the content area */
    border-radius: 8px; /* Rounded corners for a modern look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

    /* Tick box region, ensure we can see it when its read only */
    .question-response-region {
        margin-top: 10px; /* Add space above the response region */
    }

    .question-response {
        margin-top: 10px; /* Add space above the response region */
        font-size: 16px; /* Slightly smaller font for responses */
        line-height: 1.5; /* Improve readability with line height */
    }

              /* Style for checkboxes with class question-checkbox */
              input[type="checkbox"].question-checkbox {
                -webkit-appearance: none;
                appearance: none;
                width: 20px;
                height: 20px;
                border: 2px solid #999;
                border-radius: 4px;
                outline: none;
                cursor: pointer;
              }

              /* Style for checked checkboxes */
              input[type="checkbox"].question-checkbox:checked {
                background-color: #4CAF50;
                border-color: #4CAF50;
              }

              /* Create the checkmark using pseudo-element */
              input[type="checkbox"].question-checkbox:checked::before {
                content: '\2714';
                display: block;
                text-align: center;
                color: white;
                font-size: 16px;
                line-height: 20px;
              }

              /* Style for disabled checkboxes */
              input[type="checkbox"].question-checkbox:disabled {
                background-color: #e0e0e0;
                border-color: #b0b0b0;
                cursor: not-allowed;
              }

              /* Style for checked and disabled checkboxes */
              input[type="checkbox"].question-checkbox:checked:disabled {
                background-color: #8bc34a;
                border-color: #8bc34a;
              }

              /* Make the tick more visible for disabled checkboxes */
              input[type="checkbox"].question-checkbox:checked:disabled::before {
                color: #4a4a4a;
                font-weight: bold;
              }

.button-bar {
    padding: 10px;
    margin-bottom: 20px; /* Add space between questions */
    border-bottom: 1px solid #ddd; /* Separate questions with a line */
}

.application-data {
    min-height:50px;
    margin:3px;
    padding: 5px;
    background-color: var(--color-behind-text);
    border-radius: 8px; /* Rounded corners for a modern look */
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.356); /* Add shadow for depth */
}
.application-data-admin {
    min-height:20px;
    margin:4px;
    padding: 0px;
    background-color: var(--color-behind-text);
    border-radius: 8px; /* Rounded corners for a modern look */
    border: #333;
}
/* Style for the anchor tag */
a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Use the color of the parent element */
}

a:visited {
    color: inherit; /* Keep the same color for visited links */
}

a:hover .application-data {
    background-color: #5c5c5c;
    color: white;
    cursor: pointer;
}
a:hover .application-data-admin {
    background-color: #5c5c5c;
    color: white;
    cursor: pointer;
}

a:active .application-data {
    /* You can add specific styles for the active state if needed */
}

.error {
    color: red;
    font-size: 12px;
    font-style: italic;
}

.logout-button {
    float: right;
    top:0px;
    right:0px;
    margin-left:20px;
}
.settings-button {
    float: right;
    top:0px;
    right:0px;
    margin-left:20px;
}
.dash-status-draft{
    color:red;
    float: right;
    margin-right:30px;
}
.dash-status-submit{
    color:rgb(138, 112, 0);
    float: right;
    margin-right:30px;
}
.dash-status-approved{
    color:green;
    float: right;
    margin-right:30px;
}
#selectionbar {
    background-color:var(--color-windows);
    margin: auto;
    display: flex;
    justify-content: center;
    height:25px;
}
.selection {
    background-color:#e7e0e0;
    height: 100%;
    width: 100px;
    max-width: 1000px;
    border: 2px solid rgb(0, 0, 0);
    flex: 1;
    margin-left : 5px;
    margin-right : 5px;
    margin-bottom: 5px;
    border-radius: 8px; /* Rounded corners for a modern look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    text-align: center;
    color:#333;
}

.selection-active {
    background-color:#80ff6f;
    height: 100%;
    width: 100px;
    max-width: 1000px;
    border: 2px solid rgb(0, 0, 0);
    flex: 1;
    margin-left : 5px;
    margin-right : 5px;
    border-radius: 8px; /* Rounded corners for a modern look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    text-align: center;
    color:#333;
}

#approved_box {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    opacity: 0;
    animation: slideInOutCar 10s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

#emailed_box {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    opacity: 0;
    animation: slideInOutCar 10s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Overlay background */
.settings-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Popup container */
.settings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-windows);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 800px;
    width: 90%;
}

/* Popup header */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.settings-title {
    font-size: 1.2em;
    font-weight: bold;
}

#close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Settings content */
.settings-content {
    max-height: 800px;
    overflow-y: auto;
}

/* Settings form elements */
.settings-form label {
    display: block;
    margin-bottom: 5px;
}

.settings-form input[type="text"],
.settings-form input[type="number"],
.settings-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.settings-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.settings-form button:hover {
    background-color: #45a049;
}

@keyframes slideInOutCar {
    0% {
        top: -100px;
        opacity: 0;
    }
    15% {
        top: 20px;
        opacity: 1;
    }
    85% {
        top: 20px;
        opacity: 1;
    }
    100% {
        top: -100px;
        opacity: 0;
    }
}

#approved_box::before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    font-weight: bold;
}

#logged_in_as {
    font-size: 16px;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
  
  /* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
  
  /* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }


  .section-title {
    width: 100%;
    background-color: #4e4e4e; /* Dark grey background */
    color: white; /* White text */
    padding: 6px 8px; /* Add some padding for better appearance */
    font-size: 16px; /* Adjust font size as needed */
    font-weight: bold; /* Make the text bold */
    box-sizing: border-box; /* Ensure padding doesn't affect overall width */
    text-align: left; /* Align text to the left */
    margin-bottom: 0px; /* Add some space below the title bar */
    margin-top: 24px; /* Add some space below the title bar */
}

.form-title {
    width: 100%;
    color: var(--color-text); /* White text */
    padding: 10px 6px; /* Add some padding for better appearance */
    font-size: 24px; /* Adjust font size as needed */
    font-weight: bold; /* Make the text bold */
    box-sizing: border-box; /* Ensure padding doesn't affect overall width */
    text-align: left; /* Align text to the left */
    margin-bottom: 8px; /* Add some space below the title bar */
}


/* COMMENT BOX ON APPLICATION COMMENTS! */
.comment-box {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* This ensures padding is included in the width */
    padding: 4px;
  }
  
  #comment-form {
    display: flex;
    flex-direction: column;
  }
  
  #comment-form input,
  #comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* This ensures padding is included in the width */
  }
  
  #comment-form button {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px; /* Smaller padding as requested earlier */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start; /* This aligns the button to the left */
  }
  
  .comment {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
  }

/*COMMENTS ONCE RETRIEVED (ADMIN COMMENT SECTION)*/
.retrieved-comments-container {
  padding: 2px;
}

.retrieved-comment {
  background-color: var(--color-behind-text);
  padding: 10px;
  margin-bottom: 8px; /* Reduced margin for closer spacing */
  border-radius: 4px; /* Slightly rounded corners */
}

.retrieved-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px; /* Reduced margin for closer spacing */
}

.retrieved-comment-author {
  font-weight: bold;
  color: var(--color-text);
  font-size: 0.95em;
}

.retrieved-comment-date {
  font-size: 0.75em;
  color: #888;
}

.retrieved-comment-text {
  color: var(--color-text);
  line-height: 1.4;
  font-size: 0.9em;
  margin: 0;
}

  .portrait-image {
    width: 100%; /* Make the image fill the width of its container */
    height: auto;
    margin-bottom: 10px; /* Adds space between the image and text below it */
  }

  .portrait-text {
    text-align: center;
    width: 100%; /* Ensure the text container is full width */
}

  .user_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .user-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px; /* Adds some space between the text and the portrait */
    margin-right: 100px;
    width: 200px; /* Set a fixed width for the portrait container */
}
  
.image_holder {
    position: relative;
    width: 100%;
    padding: 20px 0; /* Adjust vertical padding as needed */
    background-color: #C75B18; /* Drake Orange background for the ribbon */
    text-align: center;
    overflow: hidden;
}

.image_holder::before,
.image_holder::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1000px; /* Large width to ensure it covers the sides */
    background-color: #f0f0f0; /* Same color as the ribbon */
}

.image_holder::before {
    right: 100%;
}

.image_holder::after {
    left: 100%;
}

.image_holder img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1; /* Ensure image is above the pseudo-elements */
}

.builder_question {
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
  width: 100%;
  /*overflow: hidden;*/
  /*white-space: nowrap;*/

  background-color: var(--color-behind-text);
  border: 3px solid var(--color-bg);
  border-left-width: 1px; border-right-width: 1px;
  /*max-height: 32px;*/
}

.builder-question-text {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-button {
  /*flex: 0;*/
  width: 64px;
  justify-self: flex-end;
}

.viewer-container {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
}


.question-twenty_builder {
  width: 20%;
}

.question-third_builder {
  width: 32%;
}

.app_info {
    background-color: var(--color-behind-text);
    border: 1px solid var(--color-text);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

.form_info {
    background-color: var(--color-behind-text);
    border: 1px solid var(--color-text);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

.question-archived {
    background-color: rgba(255, 0, 0, 0.144);
  }

 

  .moving {
    background-color: #007bff;
  }

  .drop-before {
    background: linear-gradient(to top, var(--color-behind-text) 80%, rgb(72, 197, 255) 100%);
    border-left-color: rgb(72, 197, 255);
    border-top-color: rgb(72, 197, 255);
  }
  
  .drop-after {
    background: linear-gradient(to bottom, var(--color-behind-text) 80%, rgb(72, 197, 255) 100%);
    border-bottom-color: rgb(72, 197, 255);
    border-right-color: rgb(72, 197, 255);
    /*border-color: rgb(72, 197, 255);*/
  }

  .question-element {
    /*padding: 2px; CREATES GAPS ON HIDDEN QUESTIONS*/
    margin-top: 2px;
    margin-bottom: 20px;
    
    width: 100%;
    /*height : 60px;*/

    vertical-align: top; /* Align tops of elements */
    box-sizing: border-box;

    visibility: visible;
    opacity: 1;
    height: auto;
    transition: visibility 0s, opacity 0.5s linear, height 0.5s ease-in, margin 0.5s ease-in;
}

.question-element select {
  width: 100%;
}
                


.question-heading {
  margin: 0 0 0px 0;
  padding: 0;
  text-align: left;
  line-height: 1.2;
}

.checkbox-container {
    display: block;
    text-align: left;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Add space between options */
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px; /* Add space between checkbox and label */
}

.checkbox-wrapper label {
    flex: 1; /* Allow label to take up remaining space */
}

                .radio-container {
                  text-align: left;
                }

                .radio-wrapper {
                  display: flex;
                  align-items: center;
                  margin-top: 12px;
                }

                .radio-wrapper input[type="radio"] {
                  -webkit-appearance: none;
                  appearance: none;
                  width: 24px;
                  height: 24px;
                  border: 2px solid #666;
                  border-radius: 50%;
                  margin-right: 10px;
                  background-color: transparent;
                  transition: all 0.1s ease;
                }

                .radio-wrapper input[type="radio"]:checked {
                  background-color: var(--color-checkboxes);
                  border-color: var(--color-checkboxes);
                  box-shadow: inset 0 0 0 4px var(--color-bg);
                }

                .radio-wrapper label {
                  display: flex;
                  align-items: center;
                }

                .radio-wrapper input[type="radio"]:hover {
                  border-color: var(--color-checkboxes);
                }


.question-element input[type="text"] {
    width: 85%;
    display: block;
}

.question-element input[type="checkbox"] {
  margin-bottom: 10px;
  margin-top: 8px;
  display: block;
}

.question-element select {
  width : 93%;
}

.question-full {
    width: 100%;
}

.question-full input[type="text"] {
  width: 97%;
}

  .question-half {
    width : 48.4%;
    display: inline-block;
  }
  .question-half input[type="text"] {
    width : 97%;
  }

  .question-third {
    width : 33%;
    display: inline-block;
    
  }
  .question-third input[type="text"] {
    width : 90%;
  }

  .question-twenty {
    width : 19.5%;
    display: inline-block;
    
  }
  .question-twenty input[type="text"] {
    width : 90%;
  }
.question-twenty select {
    width : 90%;
  }

  .question-fourty {
    width : 39.5%;
    display: inline-block;
    
  }
  .question-fourty input[type="text"] {
    width : 92%;
  }

  .question-sixty {
    width : 59.5%;
    display: inline-block;
    
  }
  .question-sixty input[type="text"] {
    width : 92%;
  }

  .question-twothirds {
    width : 65.6%;
    display: inline-block;
    
  }
  .question-twothirds input[type="text"] {
    width : 96%;
  }
  
  
  .question-custom {
    width : 100%;
  }



/*THIS IS TO MAKE THE LONG TEXT NOT RESIZEABLE AND FULL WIDTH :)*/
.question-full-width {
  width: 100%;
  box-sizing: border-box; /* This ensures padding doesn't affect the overall width */
}

.question-vertical-resize {
  resize: vertical;
  min-height: 160px; /* Set a minimum height */
  padding: 10px; /* Add some padding for better usability */
  font-family: inherit; /* Use the same font as the rest of your form */
  font-size: 1rem; /* Adjust as needed */
  line-height: 1.5; /* For better readability */
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 4px; /* Slightly rounded corners */
  margin-top: 4px;
}

/* Optional: Style for when the textarea is focused */
.question-vertical-resize:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px #007bff; /* Creates a 1px "border" effect */
}

  .rounded-input {
    margin-top: 2px;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 16px;
    border: 1px solid #ccc;
    /*width: 250px;*/
  }



        .section-title {
          display: flex;
          align-items: center;
          position: relative;
          width: 100%;
          height: 40px; /* Adjust as needed */
      }

      .title-text {
          position: absolute;
          margin-left: 6px;
      }

      .sectionCheckboxHolder {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          display: flex;
          align-items: center;
          white-space: nowrap;
          font-size: 24px;
      }

      .sectionCheckboxHolder input[type="checkbox"] {
          width: 18px;
          height: 18px;
          margin-left: 5px;
      }

      .sectionCheckboxHolder label {
          color: white;
      }



                            .close-button-class {
                              color: var(--color-text);
                            }

  /*IMAGE PREVIEW ON APPLICATION*/

  .app_image_preview_box {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: center; /* Centers the items horizontally */
    width: 100%;
    gap: 10px; /* Adds uniform space between items */
    background-color: var(--color-bg);
    border-style: solid;
    border-color: var(--color-behind-text);
    padding: 5px;
    box-sizing: border-box;
    margin-top: 4px;
    min-height: 100px;
}

.preview-image-container {
  width: 180px;
  height: 180px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border-style: solid;
  border-color: var(--color-behind-text);
  display: flex;  /* Add this */
  justify-content: center;  /* Add this */
  align-items: center;  /* Add this */
  background-color: var(--color-windows);
}

.preview-image {
    max-width: 100%; /* Ensures the image fills the container's width */
    max-height: 100%; /* Ensures the image fills the container's height */
    object-fit: cover; /* Maintains aspect ratio while covering the area */
}

.preview-image-delete-box {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px; /* Increased size */
  height: 30px; /* Increased size */
  background-color: white;
  border: 2px solid #ff0000; /* Red border */
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.preview-image-delete-box:checked::before,
.preview-image-delete-box:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px; /* Width of the cross lines */
  height: 4px; /* Thickness of the cross lines */
  background-color: #ff0000; /* Red color */
}

.preview-image-delete-box:checked::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.preview-image-delete-box:checked::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


.app-submission-failure {
  color: red;
  text-align: center;
  margin-top: 20px;
}

.app-notification {
  color: var(--color-checkboxes);
  text-align: center;
  margin-top: 20px;
}

.button-cool1 {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  margin-left: 4px;
  margin-right: 4px;
  /*font-weight: 500;*/
  text-decoration: none;
  color: var(--color-text);
  background-color: var(--color-windows);
  border: 1px solid var(--color-text);
  border-radius: 8px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  line-height: normal;
  font-family: inherit;
}

.button-cool1:hover {
  background-color: var(--color-button);
}

/* Styles for submit buttons */
input[type="submit"].button-cool1 {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-left: 4px;
  margin-right: 4px;
}

            /*hidden question is for logic, hidden question end is for survey ending logic*/
            .question-element {
              overflow: hidden;
              transition: opacity 0.5s linear, max-height 0.5s ease-out, margin 0.5s ease-out, padding 0.5s ease-out;
              /*max-height: 1000px;*/ /* Adjust based on your maximum content height */
              opacity: 1;
            }
            
            .hidden-question,
            .hidden-question-chained,
            .hidden-question-end {
              max-height: 0;
              opacity: 0;
              margin: 0;
              padding: 0;
              pointer-events: none;
              position: absolute; /* Remove from normal flow */
              visibility: hidden; /* Hide without affecting layout */
            }
            
            .hidden-question {
              color: #007bff;
            }
            
            .hidden-question-chained {
              color: #007bff;
            }
            
            .hidden-question-end {
              color: green;
            }
            

            /*.hidden-question {
              display: none; /* NEW 
              visibility: hidden;
              opacity: 0;
              height: 0;
              margin: 0;
              padding: 0;
              overflow: hidden;
              transition: visibility 0s, opacity 0.5s linear, height 0.5s ease-out, margin 0.5s ease-out;
              color: #007bff;
            }

            .hidden-question-chained {
              visibility: hidden;
              display: none;
              opacity: 0;
              height: 0;
              margin-top: 0;
              margin-bottom: 0;
              overflow: hidden;
              transition: visibility 0s, opacity 0.5s linear, height 0.5s ease-out, margin 0.5s ease-out;
              color: #007bff;
            }

            .hidden-question-end {
              visibility: hidden;
              display: none;
              opacity: 0;
              height: 0;
              margin-top: 0;
              margin-bottom: 0;
              overflow: hidden;
              transition: visibility 0s, opacity 0.5s linear, height 0.5s ease-out, margin 0.5s ease-out;
              color: green;
            }*/

                  /*.question-element.required-class {
                      border-left: 4px solid red;
                  }*/


                  .javascript_required_to_show {
                    display: none;
                  }

                  .javascript_hidden {
                    display: none;
                  }


        .question_rejected {
          /*border-width: 3px;
          border-color: red;
          border-style: solid;
          border-radius: 5px;*/
          background-color: rgba(245, 39, 39, 0.4);
        }
        
        .question_rejected select { /* Make sure dropdown box stays white*/
          background-color: white;
        }


  .tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
  }
  
  /* Tooltip text */
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
  }
  
  /* Show the tooltip text when you mouse over the tooltip container */
  .tooltip:hover .tooltiptext {
    visibility: visible;
  }

  .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*flex-wrap: wrap;
    gap: 10px; /* Adds space between flex items */
}

.admin-title {
  white-space: nowrap; /* Ensures "Admin Dashboard" stays on one line */
  margin-right: 20px; /* Pushes the rest of the content to the right */
}

.dashboard_app_select {
  /* Add any specific styles for your select element here */
  height: 20px; /* Adjust to match your button height */
  width: 200px;
  margin-left: 10px;
}





.dropzone {
  min-width: 150px;
  min-height: 100px;
  border: 2px dashed var(--color-button);
  border-radius: 20px;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropzone.dragover {
  background-color: var(--color-header);
  border-color: var(--color-text);
}

.dropzone p {
  margin-bottom: 10px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.file-preview {
  text-align: center;
  width: 100px;
  position: relative;
}

.file-preview img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.file-preview p {
  margin: 5px 0 0;
  font-size: 12px;
  word-break: break-all;
}

.remove-file {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text_color {
  color: var(--color-text);
}

.padded-box { /* This is a custom box class used to add a black (or white) border around question elements in our forms */
  margin : 10px;
  padding : 10px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--color-text);
}

.squish-class {/*Added margin we can add to full elements*/
  padding-left : 40px;
  padding-right : 40px;
}

.application_message {
  font-weight: bold; 
  text-align: center; 
  border: 2px solid black; 
  padding: 10px; 
  margin-top: 50px;
  border-color: green;
}

/*TABLE STUFF*/
.table-container {
  max-width:900px;
  margin:20px auto;
  padding:15px;
  background:var(--color-windows);
  border-radius:8px;
}

.form-table {
  width:100%;
  border-collapse:collapse;
}



.form-table td {
  padding:6px;
  border:1px solid var(--color-tableborder);
  background:var(--color-tableback1);
}

.form-table td:nth-child(even) { background:var(--color-tableback2); }

.form-table input,.form-table textarea {
  width:100%;
  height:100%;
  box-sizing:border-box;
  padding:2px;
  border:1px solid #dee2e6;
  border-radius:4px;
}

.form-table input:focus,.form-table textarea:focus {
  outline:none;
  border-color:#0d6efd;
  box-shadow:0 0 0 2px rgba(13,110,253,0.2);
}

.form-table textarea { resize:vertical; min-height:80px; }

.authenticate-form {
    max-width: 400px;
    margin: 0 auto;
}

.authenticate-form form {
    display: flex;
    flex-direction: column;
}

.authenticate-form label {
    margin-bottom: 6px;
    font-size: 14px;
}

.authenticate-form input[type="text"] {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid var(--color-tableborder);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
}

.authenticate-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-header);
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}


.auth-error{
  color: red;
  font-size: 16px;
  margin-bottom: 20px;
}

.auth-error-grey{
  color: grey;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Styled checkbox using your theme color */
.remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-checkboxes);
    cursor: pointer;
}

.authenticate-form input[type="submit"] {
    padding: 12px;
    border-radius: 6px;
    border: none;
    background-color: var(--color-button);
    color: var(--color-text);
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.authenticate-form input[type="submit"]:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.auth-links {
    margin-top: 15px;
    text-align: center;
}

.auth-links a {
    font-size: 13px;
    color: var(--color-checkboxes); /* uses your purple in dark mode */
    text-decoration: none;
    margin: 0 10px;
    transition: 0.2s ease;
}

.auth-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header-bar {
        font-size: 24px; /* Adjust font size for smaller screens */
    }

    .container {
        padding: 10px; /* Reduce padding on smaller screens */
    }

    .question-title, .question-response {
        font-size: 20px; /* Adjust font sizes for smaller screens */
    }
}

