/* style.css
Common styles */

.tabulator {
    font-size: 1em;
    background-color: #f0f0f0;
}

.tabulator-menu {
    padding: 10px;
    background-color: rgb(255, 236, 114);
}

.littleTopSpace {
	margin-top: 5px;
}

#accordion > .ui-accordion-content {
    height: 250px;
    overflow-y: scroll;
    padding: 1em 1em !important;
}


/*TABS*/
.ui-widget-header {
	background: #fff;
	border: none;
	border-bottom: 2px solid #e9e9e9;
}
.ui-widget.ui-widget-content {
	border:none;
}

.narrow {
    width: 40px;
}

.narrow2 {
    width: 50px;
}

.bigSelect {
    height: 2em;
}

.rightside {
    text-align: right;
    padding-right: 0;
    padding-top: 0.5em;
}



/* ACE Editor - numbered lines */
.stopsList {
    height: 40vh;
    font-size: 1.2em;
    font-weight: 400;
    width: 95%;
}
.ace_gutter-cell {
    color: rgb(155, 155, 155);
}

/* selectize */
/* ensure the selectize dropdown renders above a bootstrap modal (modal z-index 1055) */
.modal .selectize-dropdown {
    z-index: 2000 !important;
}

.selectize-dropdown .optgroup-header {
    font-weight: bold;
    background-color: #e6f2ff!important; /*light blue*/
}

.selectize-control.plugin-remove_button .remove-single {
    right: auto;
}

.selectize-dropdown-content > .option {
    background-color: white;
}

.selectize-dropdown-content > .option:hover {
    background-color: silver;
}

/* the chosen option keeps the blue highlight even while hovering others.
   Without this, the generic white rule above cancels the theme's highlight,
   leaving white text on white for non-optgroup selects (route_group_select). */
.selectize-dropdown-content > .option.selected {
    background-color: #0d6efd;
    color: #fff;
}

/* hover / keyboard highlight on the other options: gray, never blue */
.selectize-dropdown-content > .option.active:not(.selected) {
    background-color: #e9ecef;
    color: #1e2125;
}

.stop-divicon {
    border-radius: 100%;
    color: white;
    padding-top: 0px;
    /*padding-bottom: 20px;*/
    padding-left: 0px;
    position: absolute;
    text-align: center;
    overflow: hidden;
    /*box-shadow:0px 0px 10px black; /*looks 3D! no need of a border*/
    background-color: green;
    border: 2px solid white;
    font-size: 8pt;
}


/* sortableJS https://sortablejs.github.io/Sortable/#simple-list */
.sortable-ghost {
    background-color: #C8EBFB;
}

.list-group-item {
    position: relative;
    height: 40px;
}


#stops_order_holder {
    height: 75vh;
    overflow-y: scroll;
}

.removeStopButton {
    position: absolute;
    background: #ff6666;
    color: white;
    top: 5px;
    right: 0px;
    font-weight: bold;
    font-size: 0.9rem;
    height: 20px;
    vertical-align: text-top;
    width: 20px;
    text-align: center;
    cursor:pointer;
}

#patterns_order_holder {
    max-height: 200px;
    overflow-y: scroll;
}

.idTag {
    font-size: 0.7em;
    background-color: #ffd280;
}

.unmapped, #unmappedHolder {
    color:  red;
}

.unmapped {
    font-size: 0.7em;
}


.divOnMap_left {
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    /*font-size: 14px;*/
    border-radius: 5px;
    box-shadow:0px 0px 5px black; 
    min-height: 100px;
    max-height: 300px;
    width: 270px;
    overflow-x: hidden;
    overflow-y: auto;
}

.divOnMap_right {
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    /*font-size: 14px;*/
    border-radius: 5px;
    box-shadow:0px 0px 5px black; 
    min-height: 8rem;
    width: 17rem;
    font-size: 1rem;
}

.top20 {
    padding-top: 20px;
}


.leaflet-container {
    background-color: #fff;
}

.map_popup1 {
    font-size: 1rem;
}

.map_toolip1 {
    font-size: 1rem;
}

.timings-edited-cell {
    background-color: yellow;
}



.timeBand {
    padding-top: 20px;
    background: #0a5575; /*light pink*/
    color: whitesmoke;
}

.mt_checkbox {
    margin-left: 20px;
}

label.mt_checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
}

.footer {
    min-height: 7rem;
    background: linear-gradient(180deg, #fff7cc 0%, #fffdf5 60%, #ffffff 100%);
    border-top: 1px solid #f0e6a8;
    font-size: 1.1rem;
    text-align: center;
    padding-top: 2rem;
}

.footer a {
    color: #0d6efd;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.spacer-200 {
    height: 200px;
}

.spacer-50 {
    height: 50px;
}

.spacer-100 {
    height: 100px;
}

#diagnose_table td, #diagnose_table th {
    padding: 5px;
}

.gtfs_card {
    font-size: 1.2rem;
}

.nopad {
    padding-left: 0px;
    padding-right: 0px;
}

.nopad_right {
    padding-right: 0px;
}

.print_checkbox {
    margin-left: 0px;
}

label.print_checkbox input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
}

.widebutton1 {
    width: 20rem;
    max-width: 100%;
}

/* Settings page */
.field-group {
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
}
.field-group .btn-remove {
    margin-top: 10px;
}
.btn-add {
    margin-bottom: 20px;
}
textarea.values1 {
    resize: vertical; /* Allow vertical resize only */
    min-height: 10rem;
}

.bigcheckbox {
    width: 24px;
    height: 24px;
}

/* Patterns Page */
.patterns_page_row {
    height: 600px;
    

}
#pattern_section {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Smooth snap between cards */
    /* height: 100%; */
}
.pattern_title {
    font-size: 1.3rem;
    font-weight: bold;
}

.pattern_card {
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
    min-width: 20rem;
    height: 600px;
    overflow-y: auto;
    
}

/* move-pattern modal: keep the body tall enough that the selectize dropdown
   tray (max 200px) is never cut off, even when the body otherwise has very
   little content (just the route picker). */
#modal_movePattern .modal-body {
    min-height: 400px;
}

/* merge-route modal: same treatment for its target-route dropdown tray */
#modal_mergeRoute .modal-body {
    min-height: 400px;
}

/* TOP MENU */
/* .navbar1, .dropdown-menu1 {
    background-color: #4a028a!important;
} */

.navbar1 {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #09843e 0%, #17a755 100%) !important;
}

/* keep all navbar links white (incl. inactive ones) */
.navbar1 .nav-link {
    color: #ffffff !important;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* box-selection hover effect */
.navbar1 .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18);
}

.navbar1 .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.25);
}

/* dropdown submenus: green scheme matching the navbar */
.navbar1 .dropdown-menu {
    background: linear-gradient(180deg, #17a755 0%, #09843e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.navbar1 .dropdown-menu .nav-link {
    color: #ffffff !important;
}

.navbar1 .dropdown-menu .nav-link:hover,
.navbar1 .dropdown-menu .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.dropdown-menu {
    z-index: 1050; /* Match Bootstrap’s navbar z-index */
}

.inline_input {
    width: 400px; 
    display: inline-block; 
    max-width: 100%;
}

.inline_input_group {
    display: inline-block; 
}

.container-500 {
    max-width: 500px;
}


.dropdown-menu2 {
    min-width: 16rem;
}


/* CSS to ensure single light gray border */
.key-value-table {
    width: 100%;
    border-collapse: collapse; /* Crucial for single borders */
    font-size: 0.8rem;
}
.key-value-table td {
    /* Light gray single border */
    border: 1px solid #e0e0e0;
    padding: 4px 6px;
    vertical-align: top;
}
/* Style for the first column (Key) */
.key-column {
    font-weight: bold;
    width: 30%; /* Gives more space to the value column */
    background-color: #f9f9f9; /* Subtle background difference */
}
/* Style for the second column (Value) */
.value-column {
    width: 70%;
}


/* Loader BAR */
@keyframes load-20-minutes {
    0% {
        width: 3%;
    }
    100% {
        width: 99%;
    }
}

@keyframes load-40-minutes {
    0% {
        width: 3%;
    }
    100% {
        width: 99%;
    }
}

/* Apply the custom animation to the progress bar element */
.progress-bar-20m {
    /* 1. Set the duration to 1200 seconds (20 minutes * 60 seconds) */
    animation-duration: 1200s; 
    
    /* 2. Specify the animation name */
    animation-name: load-20-minutes;
    
    /* 3. Run the animation once (forwards) and keep the final state (100%) */
    animation-fill-mode: forwards;
    animation-timing-function: linear; /* Ensures smooth, constant speed */
}

.progress-bar-40m {
    /* 1. Set the duration to 2400 seconds (40 minutes * 60 seconds) */
    animation-duration: 2400s; 
    
    /* 2. Specify the animation name */
    animation-name: load-40-minutes;
    
    /* 3. Run the animation once (forwards) and keep the final state (100%) */
    animation-fill-mode: forwards;
    animation-timing-function: linear; /* Ensures smooth, constant speed */
}