* {
    padding: 0;
    margin: 0;
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,
    Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
}

:root {
    --bg_color: rgb(243, 244, 246); /* Lightgrey */
    --fg_color: white;
    --bg_dropzonecolor: rgb(243, 244, 246); /* Lightgrey */
    --bg_dropzonecolor_hover: rgb(229, 230, 230); /* Slightly darker grey than dropzonecolor */
    --grey_text_color: rgb(107, 114, 128);
    --label_color: rgb(55, 65, 81);
    --label_grey_color: rgb(180, 180, 180);
    --border_color: rgb(229, 231, 235);
    --button_color: rgb(226, 119, 0); /* Orange */
    --button_color_hover: rgb(187, 81, 2); /* Dark orange */
    --message_succes: rgb(0, 153, 0); /* Green */
    --message_failed: rgb(196, 0, 0); /* Red */

    /* Same box shadow as in Coddin web app */
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
}

body {
    background-color: var(--bg_color);
}

#overlay {
  background: rgba(0,0,0,0.5);
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.logo_coneyminds {
    width: 150px;
    display: block;
    margin: 20px auto 10px;
    pointer-events: none;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.75em;
    font-weight: 400;
}

.container {
    background-color: var(--fg_color);
    width: calc(100% - 40px);
    max-width: 600px;
    display: block;
    margin: 0 auto 20px;
    border-radius: 10px;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.popup {
    position: fixed;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
    z-index: 2;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-evenly;
    border-bottom: 1px solid var(--border_color);
    margin-bottom: 20px;
    box-sizing: border-box;
}

nav a {
    font-weight: bold;
    color: var(--grey_text_color);
    padding: 10px 10px 20px;
    text-decoration: none;
}

nav a:hover, .nav_selected {
    cursor: pointer;
    box-shadow: inset 0px -2px var(--border_color);
}

.nav_selected {
    color: black;
}
/* */

.opening_text {
    text-align: center;
}

.app_description, .app_subdescription {
    text-align: center;
    margin-bottom: 20px;
}

.app_subdescription {
    color: var(--grey_text_color);
}

hr {
    margin-bottom: 20px;
}

.container_subtitle {
    font-weight: normal;
    margin-bottom: 20px;
    text-align: center;
}


/* DROPZONE */
/* Modifying existing styling dropzone elements */
.dropzone_custom_style {
    background-color: var(--bg_dropzonecolor) !important;
    outline: 2px dashed grey;
    outline-offset: -15px;
    border: none !important;
    max-width: 300px;
    display: block;
    margin: 0 auto 20px;
}

.dropzone .dz-preview.dz-file-preview .dz-image { /* Center the grey block after a file is uploaded */
    margin: auto;
    display: inherit;
}

.dropzone .dz-preview {
    display: inherit !important; /* Center the elements inside the grey block after a file is uploaded */
}

.dz-remove {
    color: black;
    margin-top: 5px;
}

.upload_icon {
    width: 75px;
    display: block;
    margin: auto;
    pointer-events: none;
}
/* */


/* LOADER */
#loader_block {
    height: 300px;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.loader {
    border: 16px solid rgb(226, 119, 0);
    border-top: 16px solid #be2626;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

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


/* FILE PREVIEWER */
.file_uploads_list {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    max-height: 200px;
    overflow-y: scroll;
    margin-bottom: 20px;
}

.file_uploads_list::-webkit-scrollbar {
    width: 5px;
}
.file_uploads_list::-webkit-scrollbar-thumb {
    background-color: var(--border_color);
    border-radius: 50px;
}
.file_uploads_list::-webkit-scrollbar-thumb:hover {
    background-color: var(--collapsible_icon_color);
}

.file_upload_record {
    padding: 10px 0;
    border-bottom: 1px solid var(--border_color);
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 20px 1fr 100px 20px;
    position: relative;
}


.file_upload_record:has(> i.fa-times) { /* For placing files with red X at the top */
    order: -1;
}

.file_upload_remove_icon {
    padding-top: 2px;
    font-size: 1.2em;
    color: var(--grey_text_color);
    display: grid;
    justify-self: center;
    align-self: center;
    cursor: pointer;
}

.file_upload_remove_icon:hover {
    color: red;
}

.file_upload_name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.file_upload_size {
    display: grid;
    align-items: center;
}

.file_upload_status_icon {
    padding-top: 2px;
    font-size: 1.2em;
    text-align: center;
    display: grid;
    justify-self: center;
    align-self: center;
}

.file_upload_tooltip_error_message {
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.file_upload_tooltip_error_message::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -10px;
    width: 10px;
    height: 10px;
    background-color: black;
    clip-path: polygon(75% 50%, 0 0, 0 100%);
}

.file_upload_status_icon:hover ~ .file_upload_tooltip_error_message {
    display: inherit;
}

.fa-check {
    color: var(--message_succes);
}

.fa-times {
    color: var(--message_failed);
}

.file_uploads_list_info_text {
    padding: 10px 0;
    color: var(--grey_text_color);
    font-size: 0.9em;
    text-align: justify;
    display: flex;
}

.file_uploads_list_info_text i {
    color: #0088ff;
    display: block;
    font-size: 1.4em;
    padding: 0 5px 0 2px;
}
/* */


/* LABELS, INPUTS AND TOOLTIPS */
label {
    color: var(--label_color);
    font-weight: 600;
}

.gray_label_text {
    color: var(--label_grey_color);
}

input, select {
    display: block;
    padding: 5px 10px;
    margin: 5px 0 20px;
    width: 150px;
    cursor: pointer;
    font-size: 1em;
}

input {
    box-sizing: border-box;
}

input::placeholder {
    color: var(--label_grey_color);
}

.dropdown_info_text {
    margin: 5px 0 20px;
    color: var(--grey_text_color);
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 360px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
/* */


/* BUTTONS */
.buttons_div {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.button {
    background-color: white;
    color: var(--button_color);
    border: 1px solid var(--button_color);
    border-radius: 5px;
    color: white;
    font-weight: 600;
    font-size: 1em;
    width: min-content;
    height: min-content;
    margin: 0;
    padding: 7.5px 20px;
    cursor: pointer;
    text-decoration: none;
    width: max-content;
}

.orange_button {
    background-color: var(--button_color);
    color: white;
}

.orange_button:hover {
    background-color: var(--button_color_hover);
}

.orange_button:disabled {
    background: #DDDDDD;
    cursor: default;
    border-color: #DDDDDD;
}

.white_button {
    color: var(--button_color);
}

.white_button:hover {
    background-color: #fafafa;
}
/*  */


/* SUBMIT MESSAGES FOR SUCCESS AND ERROR */
#submit_result_message {
    text-align: center;
    margin-top: 20px;
}

.submit_result_message_succes {
    color: var(--message_succes);
}

.submit_result_message_failed {
    color: var(--message_failed);
}
/*  */


.full_width {
    width: 100%;
}

.error_404_text {
    text-align: center;
    font-size: 6em;
    margin-top: -25px;
}

.page_not_found_text {
    text-align: center;
}

.invisible {
    display: none !important;
}