body {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 100px; /*nav height and margin for content*/
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after {
    content: " \25B4\25BE"
}

.footer {
  bottom: 0;
  width: 100%;
  margin-top: auto;
  /* Set the fixed height of the footer here */
  height: auto;
  line-height: 21px; /* Vertically center the text there */
  background-color: #f5f5f5;
  border-top: 5px solid black;
}
.container-fluid{
    background-color: #f5f5f5;
}
.login-logout-link {
  padding-left:30px;
  padding-right:5px;
}

.navbar {
  background-color: black;
  /* border-bottom: 5px solid red; */
}

.phrase-nav {
  background-color: black;
  border-bottom: 1px solid black;
}

.keyword-nav{
    border-top: 1px solid;
    margin-top: 10px;
}

.entry-header {
  background-color: black;
}

#document_image {
  max-width: 100%;
}

/* input[readonly] {
  background: white;
} */

input[type=text]:disabled {
    background: white;
}

input[type=email]:disabled {
    background: white;
}

textarea[disabled] {
    background-color: white !important;
}

.breadcrumb-item .active {
  color: white;
}

.pagination {
  justify-content: center;
}

.table-borderless td, th {
  border: 0;
}

.table-bottom-margin {
  margin-bottom: 30px;
}

.ui-autocomplete {
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-footer-white {
  background-color: white;
  border: none;
  /* padding: 0px; */
}

.borderless-card {
  border: none;
}

#document-type {
  padding-left: 15px;
}

.pill-text {
  font-weight: normal;
}

.btn-container {
  padding-left: 10px;
  padding-right: 10px;
}

.preserve-new-lines {
  white-space: pre-line;
}

.image-container {
  min-height: 200px;
  max-height: 400px;
  max-width: 100%;
  overflow: scroll;
  margin-bottom: 25px;
}

audio {
  height: 30px;
  width: 235px;
}

.browse-entries-container {
  height: 625px;
  overflow: auto;
}

.form-check {
  padding-top: 5px;
}

.table-borderless-header th{
  border: none;
}

.form-group-button {
   padding-top: 35px;;
}

.ribbon {
  background-image: url("../images/ILDAribbon.jpg");
  background-size: contain;
	background-repeat: repeat-x;
	height: 30px;
	width: 100%;
  padding-top: -5px;
  margin-top: -45px;
  margin-bottom: 45px;
  z-index: 1;
  display: none;
}

.container .content-row {
  margin-top: 25px;
}

/* for jQuery autosuggest in modals */
ul.ui-autocomplete {
    z-index: 1100;
}

.modal-feedback {
  margin-left: 10px;
}

/* approve button on dictionary entry page */
.btn-approve {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    width: 90px !important;
}

.btn-approve:hover, .btn-approve:focus, .btn-approve:active, .btn-approve.active, .open>.dropdown-toggle.btn-approve {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

/* unapprove button on dictionary entry page */
.btn-unapprove {
    /* gray #868e96
    blue #007bff
    white #fff*/
    color: #007bff;
    background-color: #fff;
    border-color: #007bff;
    width: 90px !important;
}

.btn-unapprove:hover, .btn-unapprove:focus, .btn-unapprove:active, .btn-unapprove.active, .open>.dropdown-toggle.btn-unapprove {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-save, .btn-cancel {
    width: 120px !important;
}

/*help button for csv upload help guide*/
.btn-help{
    width: 1.5em;
    height: 1.5em;
}

.characters-remaining {
  color: red;
}

.show-phrase .wavesurfer-region{
    border-left: 2px solid;
    border-right: 2px solid;
}

/* ------ <<START>> Custom Switch <<START>> ------*/
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.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: 15px;
    width: 15px;
    left: 7px;
    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(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 17px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch.disabled .slider {
    cursor: no-drop;
    opacity: 0.5;
}
/* ------ <<END>> Custom Switch <<END>> ------*/


#custom-alphabets-container {
    margin-left: auto;
    margin-right: auto;
}

#custom-alphabets-container ul {
    list-style: none;
    padding-left: 0;
}

#custom-alphabets-container ul li {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

#custom-alphabets-container .delete-alphabet {
    margin: 0 10px;
}

/*
Navbar & Footer CSS
*/
.ilda-title-text {
    position: absolute;
    top: 0;
    left: 250px;
    z-index: 10;
    font-size: x-large;
    color: white;
    white-space: nowrap;
}

.ilda-title-container {
    height: 100px;
    position: relative;
    width: 550px;
    top: 10px
}

.ilda-image-container {
    position: absolute;
    width: 100%;
}

.main-navbar {
    height:100px;
}

@media only screen and (max-width: 991px) {
    body{
        padding-top: 5rem;
    }

    .navbar .logo-image {
        width: 350px;
        height: auto;
    }

    .ilda-title-text {
        font-size: 18px;
        left: 180px;
    }

    .ilda-title-container {
        width: auto;
        height: auto;
        top: 0;
    }

    .ilda-image-container {
        width: auto;
        height: auto;
        position: static;
    }

    .main-navbar {
        height: auto;
        padding: 12px;
    }

    .login-logout-link {
        padding-left: 0;
    }

    #navbar-main .dropdown-menu.show{
        margin-bottom: 10px;
    }

    .footer {
        height: auto;
        line-height: unset;
        padding-top: 1rem;
    }
}

@media only screen and (max-width: 450px) {
    .navbar .logo-image {
        width: 250px;
        height: auto;
    }

    .ilda-title-text {
        font-size: 16px;
        left: 130px;
    }
}

/*
END Navbar & Footer CSS
*/

.dropdown-menu.parts-of-speech {
    max-height: 51vh;
    overflow: auto;
    top: 0;
    padding-top: 0;
}

.parts-of-speech .px-4{
    position: relative;
}

.select-all{
    position: sticky;
    top: 0;
    z-index: 1;
    background: #e8e8e8;
    padding-top: 5px;
}

.headword-audio {
    margin-left: -10px;
}
audio ~ a{
   color: black;
}

audio ~ a:hover{
    color: black;
    background-color: #2021240f;
    border-radius: 50%;
 }

.video {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 350px;
    margin-top: 25px;
}

.text-sm {
    font-size: 0.75rem !important;
}

.modal-xl {
    width: 80vw;
}
@media (min-width: 576px) {
    .modal-xl.modal-dialog {
        max-width: unset !important;
    }
}

.stems-modal-iframe {
    height: 80vh;
}

.fa-arrow-left:hover{
    cursor: pointer;
}

.para-margin-0 p {
    margin: 0 !important;
}

.img-modal .modal-content img{
    /* 95% of window height */
    height: 95vh;
}

input[name=deletefeedback] {
    transform: scale(2);
}

@media (max-width: 780px) {
    input[name=deletefeedback] {
        transform: scale(1.5);
    }
}

/* START audio speaker and player styles*/

.audio-speaker{
    min-width: 130px;
}

.stem-audio-wrapper{
    width: -moz-fit-content;
    width: fit-content
}

/* END audio speaker and player styles*/

.underline{
    text-decoration: underline;
}
.csv-link{
    font-size: 14px;
}
.form-re_record-input.checkbox, .form-recheck_ready-input.checkbox{
    width:24px;
    height:21px;
    margin-top:0px;
}

.audio-warning{
    padding: 0rem 0.5rem;
    border: 1px solid #ffc107;
    border-radius: 50%;
    cursor: pointer;
    height: 1.5rem;
    margin-top: 0.2rem;
}

/* Analytics Card Style */
.text-lg{
    font-size: 20px;
}

.text-xl{
    font-size: 24px;
}
.analytics-wrapper .card{
    min-width: 30%;
    flex-grow:1;
}
.btn-refresh{
    text-decoration: underline !important;
    color: #007bff !important;
    cursor: pointer;
    background-color: transparent;
}

/* Analytics Card Style---End */

/* highlight visited unapproved entry rows */
.table-hover tbody tr.visited {
    background-color: #d8e6f3; /*#9bbfe1*/
}

/********* START of styles for custom search input in the search phrases UI ***********/

/* Basic layout and appearance */

.search-term-input-wrap {
    padding:  0.2rem 0 0.2rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.25rem;
    align-items: center;
    height: auto;
    line-height: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


.search-term-input-wrap:has(.form-control-mini:focus),
.operator:focus {
    color: #495057;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.search-term-input-wrap .badge {
    height:fit-content;
    background-color: transparent;
}

.search-term-input-wrap .colon {
    font-weight: bold;
    padding-top: 0.25rem;
    height: 100%;
}

.search-term-input-wrap .parantheses {
    font-size: 30px;
    font-weight: 200;
    margin-top: -6px;
    height: auto;
    display: none;
}

.search-term-input-wrap select {
    padding: 0  0.375rem;
    /* for Firefox */
    -moz-appearance: none;
    /* for Safari, Chrome, Opera */
    -webkit-appearance: none;
  }

/* Search term individual wrap */
.search-term-indiv-wrap {
    display: none;
    align-items: center;
    height: 1.8rem;
    border: 1px solid #dcdcdc;
    border-radius: 0.5rem;
    position: relative;
}

/* Form control and operator styling */
.form-control-mini {
    display: block;
    width: fit-content;
    height: 1.5rem;
    padding: 0 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0.25rem;
}

.operator {
    display: none;
    margin: 0 0.25rem;
    background-color: #e7e7e7;
    text-align: center;
}

span.form-control-mini{
    /* width: min-content; */
    min-width: 40px;
}

.search-term-indiv-wrap .fa{
    font-size: 13px;
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
    padding: 0.05rem 0.1rem;
    background: white;
    color: gray;
    cursor: pointer;
    border: 1px solid gray;
    display: block;
}

/* .search-term-indiv-wrap:hover .fa{
    display: block;
}
.search-term-indiv-wrap span.input:focus .fa{
    display: block;
} */

.search-field-row{
    position: relative;
}

/* Dropdown styling */
.search-field-options {
    display: none;
    height: auto;
    width: fit-content;
    margin-left: auto;
    margin-top: 0.3rem;
    background: #e5e5e4;
    padding: 0.3rem 0.375rem;
}

.search-field-options.opened {
    display: grid;
    position: absolute;
    top: 2.5rem;
    z-index: 1;
}

.search-field-options li {
    padding: 0.1rem 0.375rem;
    border-radius: 0.25rem;
    cursor: default;
    list-style-type: none;
}

.search-field-options li:hover,
.search-field-options li:focus {
    background-color: #579eff;
    color: white;
}

/* Trigger button styling */
.search-field-trigger-wrapper {
    width: min-content;
    padding: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}
.search-field-trigger {
    width: 2.5rem;
    margin: 0;
    cursor: default;
    border: 0;
    outline: 0;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-field-trigger.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*** Dynamic display based on data-terms attribute ***/

/* Show first search term input */
.search-term-input-wrap[data-terms="1"] #search-term-1 {
    display: flex;
}

/* Show first and second search term inputs and the first operator */
.search-term-input-wrap[data-terms="2"] #search-term-1,
.search-term-input-wrap[data-terms="2"] #search-term-2,
.search-term-input-wrap[data-terms="2"] #operator1 {
    display: flex;
}

/* Show all three search term inputs and both operators */
.search-term-input-wrap[data-terms="3"] #search-term-1,
.search-term-input-wrap[data-terms="3"] #search-term-2,
.search-term-input-wrap[data-terms="3"] #search-term-3,
.search-term-input-wrap[data-terms="3"] .parantheses,
.search-term-input-wrap[data-terms="3"] #operator1,
.search-term-input-wrap[data-terms="3"] #operator2 {
    display: flex;
}

/* Contenteditable styling */
[contenteditable="true"] br {
    display: none;
}
[contenteditable="true"][placeholder]:empty:before {
    content: attr(placeholder);
    color: #999;
    font-size: 10px;
    top: -2px;
    position: relative;
}

/********* END of styles for custom search input in the search phrases UI ***********/



  .textarea-static {
    background:#fff;
    border:1px solid #ced4da;
    border-radius:.25rem;
    padding:.375rem .75rem;
    min-height:8rem;
    white-space: pre-line;   /* key change: was pre-wrap */
    line-height: 1.5;        /* match Bootstrap textarea feel */
    overflow:auto;
  }
  .textarea-static a { text-decoration: underline; }

/* Hide extended footer content on mobile for all pages except home */
@media (max-width: 768px) {
    body:not(.home-page) .footer .col-5 {
        display: none !important;
    }

    body:not(.home-page) .footer .col-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    body:not(.home-page) .footer .col-7 p:last-child {
        display: none !important;
    }

    body:not(.home-page) .footer .row {
        justify-content: center !important;
    }


    /* Make alphabet buttons wrap on mobile */

    .btn-group.d-flex {
        flex-wrap: wrap !important;
    }

    .btn-group.d-flex .btn {
        flex: 0 0 auto !important;
        width: calc(100% / 9) !important;
        min-width: 40px !important;
        margin-bottom: 2px !important;
    }

    /* Add padding to alert on mobile to make room for button */
    .alert.alert-success.position-relative {
        padding-right: 120px !important; /* Make room for button */
    }

    /* Adjust button size on mobile if needed */
    .alert .btn.position-absolute {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }


    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden !important;
    }

    /* Force text to wrap in alerts */
    .alert {
        word-wrap: break-word !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
    }

    /* Ensure containers don't exceed viewport */
    .container, .container-fluid {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

