.route-creator-container {
    position: relative;
    height: 83%;
    overflow: auto;
    color: white;
    margin: 9vh auto;
}

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.form-section2 {
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    color: white;
    top: 22%;
    position: relative;
}

.form-section:hover {
    background: rgba(255, 255, 255, 0.05);
}

.form-input {
    margin: 8px 14px;
    padding: 12px;
    width: 91%;
    margin-left: 2%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input option {
    color: black;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.btn {
    padding: 10px 20px;
    margin: 8px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(76, 175, 80, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.18);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.process-row {
    position: relative;
    margin: 15px 0;
    padding: 20px;
    background: rgba(35, 35, 35, 0.8);
    border-radius: 12px;
    border-left: 4px solid #4a6da7;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    user-select: none;
    cursor: move;
}


.process-row:hover {
    background: rgba(45, 45, 45, 0.9);
    transform: translateY(-2px);
}

.process-row.last-point {
    border-left: 4px solid #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.point-number {
    position: absolute;
    top: -12px;
    left: 15px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin: 10px 0;
}

.form-input {
    margin: 8px 14px;
    padding: 12px;
    width: 29%;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.coord-display {
    background-color: rgba(25, 25, 25, 0.9);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 1.2vh;
}

.process-settings,
.take-settings {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: rgba(25, 25, 25, 0.5);
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
    width: 100%;
}

.setting-row label {
    min-width: 130px;
    color: #ddd;
    font-size: 14px;
}

.process-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.update-coord-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.update-coord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.take-settings {
    width: 100%;
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 10px;
}

.animation-settings.animation-input-group {
    display: flex;
}


/* Switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

/* Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

/* Slider button */
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

/* Checked state */
input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

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

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

/* Label styling */
.with-car-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.switch-label {
    margin-left: 10px;
}

input:checked+.slider {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

input:disabled+.slider {
    background-color: #888;
    cursor: not-allowed;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

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

.switch .label {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}



.form-input:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.remove-btn {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.remove-btn:hover {
    background: linear-gradient(45deg, #ef5350, #e53935);
    box-shadow: 0 6px 18px rgba(244, 67, 54, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.remove-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Drag and drop styling */
.process-row.dragging {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.process-row.drag-over {
    border-top: 2px solid #4CAF50;
    margin-top: 20px;
}

.drag-over-top {
    border-top: 2px solid #3498db;
}

.drag-over-bottom {
    border-bottom: 2px solid #3498db;
}

.dragging {
    opacity: 0.8;
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.process-row {
    cursor: move;
    user-select: none;
}

.process-row.d ragging * {
    pointer-events: none;
}

.process-row-placeholder {
    border: 2px dashed rgba(52, 152, 219, 0.5);
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    margin: 5px 0;
    transition: all 0.2s ease;
}

.process-row.dragging {
    opacity: 0.8;
    cursor: move;
}

.dragging {
    opacity: 0.9;
    background: rgba(52, 152, 219, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.show-anim-list {
    padding: 8px 15px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 10px;
    min-width: 120px;
}

.show-anim-list:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.show-anim-list:hover:before {
    left: 100%;
}

.show-anim-list:hover {
    background: linear-gradient(135deg, #27ae60, #219a52);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.show-anim-list:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.2);
}



/* anim */


.animation-selector-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 26, 0.95);
    padding: 20px;
    border-radius: 12px;
    z-index: 1000;
    width: 400px;
    height: 100vh;
    right: 0;
    top: 0;
    color: white;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.animation-lists {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.animation-dict-list,
.animation-name-list {
    background: rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    padding: 15px;
    min-height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.list-header {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dict-list,
.anim-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}

.dict-search,
.anim-search {
    width: 100%;
    padding: 10px;
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    margin-bottom: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dict-search:focus,
.anim-search:focus {
    background: rgba(61, 61, 61, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.dict-item,
.anim-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dict-item:hover,
.anim-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.dict-item.selected,
.anim-item.selected {
    background: rgba(44, 62, 80, 0.8);
    color: #fff;
    font-weight: 500;
    border-left: 3px solid #3498db;
}

/* Scrollbar Styling */
.animation-selector-container::-webkit-scrollbar,
.dict-list::-webkit-scrollbar,
.anim-list::-webkit-scrollbar {
    width: 6px;
}

.animation-selector-container::-webkit-scrollbar-track,
.dict-list::-webkit-scrollbar-track,
.anim-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.animation-selector-container::-webkit-scrollbar-thumb,
.dict-list::-webkit-scrollbar-thumb,
.anim-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.animation-selector-container::-webkit-scrollbar-thumb:hover,
.dict-list::-webkit-scrollbar-thumb:hover,
.anim-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animation Controls */
.animation-controls {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.control-button {
    padding: 8px 15px;
    background: rgba(52, 152, 219, 0.8);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-button:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-2px);
}

.control-button.stop {
    background: rgba(231, 76, 60, 0.8);
}

.control-button.stop:hover {
    background: rgba(231, 76, 60, 1);
}

.control-button:disabled {
    background: rgba(149, 165, 166, 0.8);
    cursor: not-allowed;
    transform: none;
}

.preview-controls {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-controls button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.preview-controls button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.preview-controls button:hover:before {
    left: 100%;
}

.preview-controls button:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.preview-controls button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

.preview-controls button.stop {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.preview-controls button.stop:hover {
    background: linear-gradient(135deg, #c0392b, #a93224);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.preview-controls button:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.preview-controls button:disabled:before {
    display: none;
}

.animation-settings.hidden {
    display: none;
}


/* Route Creator — aktif rotalar: kabuk = job-lists / billboard ile aynı token’lar */
.route-creator-active-route {
    margin-bottom: 20px;
    padding: var(--admin-panel-box-padding);
    border-radius: var(--admin-panel-box-radius);
    background: var(--admin-panel-box-surface-bg);
    border: var(--admin-panel-box-border);
    box-shadow: var(--admin-panel-box-shadow);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.route-creator-active-route.minimized {
    max-height: 88px;
    overflow: hidden;
}

.route-creator-active-route #activeRoutesList {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(72vh, 820px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 2px 8px 0;
    margin-top: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 165, 255, 0.35) rgba(255, 255, 255, 0.06);
}

.active-routes-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
    margin: 0 0 7px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}

.active-routes-header h3 {
    flex: 1 1 200px;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: 1.25;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a8b0c4;
}

.active-routes-header .active-routes-search,
.active-routes-header .route-list-filter {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 100%;
    width: auto !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 12px !important;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.active-routes-header .active-routes-search:hover,
.active-routes-header .route-list-filter:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.active-routes-header .active-routes-search:focus,
.active-routes-header .route-list-filter:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(130, 165, 255, 0.4) !important;
    box-shadow: 0 0 0 2px rgba(72, 120, 255, 0.15);
}

.active-routes-header .btn {
    margin: 0 !important;
    flex-shrink: 0;
    padding: 9px 16px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.active-routes-header .btn:active {
    transform: scale(0.98);
}

.active-routes-header #importRouteKeyBtn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #b8c0d4 !important;
    font-weight: 600 !important;
}

.active-routes-header #importRouteKeyBtn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    filter: none;
}

.active-routes-header #createNewRoute {
    background: linear-gradient(180deg, #3ee89a, #1fa855) !important;
    border: 1px solid rgba(130, 235, 180, 0.55) !important;
    color: #fff !important;
}

.active-routes-header #createNewRoute:hover {
    filter: brightness(1.08);
}

.route-import-dialog-overlay {
    position: absolute;
    inset: 0;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.route-import-dialog-overlay.hidden {
    display: none;
}

.route-import-dialog {
    width: min(520px, 88%);
    padding: var(--admin-panel-box-padding);
    border-radius: var(--admin-panel-box-radius);
    border: var(--admin-panel-box-border);
    background: var(--admin-panel-box-surface-bg);
    color: var(--text-color, #ffffffd1);
    box-shadow: var(--admin-panel-box-shadow);
    border-left: 3px solid var(--admin-panel-box-accent-info);
    box-sizing: border-box;
}

.route-import-dialog-title {
    font-size: 1.8vh;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color, #ffffffd1);
}

.route-import-dialog-label {
    font-size: 1.25vh;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.route-import-dialog-input {
    width: 100% !important;
    margin: 0 !important;
    min-height: 42px;
    background: var(--page-bg-color, rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color, #fff);
    font-size: 13px;
}

.route-import-dialog-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.route-import-accept {
    margin: 0;
    min-width: 96px;
}

.route-import-decline {
    margin: 0;
    min-width: 96px;
    background: var(--page-bg-color, rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.route-import-decline:hover {
    background: var(--decline-hover-bg, #f11c0d);
}

.route-inline-toast {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2400;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    max-width: min(360px, 90%);
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--box-bg-color, rgba(24, 24, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color, #fff);
    transform: translateY(10px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.route-inline-toast.is-open {
    transform: translateY(0);
    opacity: 1;
}

.route-inline-toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
    flex: 0 0 auto;
}

.route-inline-toast.is-error .route-inline-toast-dot {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.55);
}

.route-inline-toast-text {
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
}

/* #devixInlineToast — admin panel içi sağ alt (.admin-menu-wrapper position: relative) */
.route-inline-toast--admin-dock {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: auto;
    top: auto;
    z-index: 120;
}

/* Yedek: admin kapalıyken viewport */
.route-inline-toast--viewport {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: auto;
    top: auto;
    z-index: 2147483000;
}

/* Route Creator Homepage (Back to List) Button */
.route-creator-homepage.form-section2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 10px 16px;
    margin-bottom: 18px;
    border-radius: var(--admin-panel-box-radius);
    background: var(--admin-panel-box-surface-bg);
    border: var(--admin-panel-box-border);
    box-shadow: var(--admin-panel-box-shadow);
    color: #eceef4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid var(--admin-panel-box-accent-info);
}

.route-creator-homepage.form-section2:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(130, 165, 255, 0.35);
    transform: translateX(2px);
}

.route-creator-homepage.form-section2 i {
    color: #8ca8f9;
    font-size: 14px;
}

.route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 0;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.route-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    filter: none;
}

.route-item-info {
    flex: 1;
    min-width: 0;
}

.route-item-header {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #e8eaf0;
    line-height: 1.3;
    word-break: break-word;
}

.route-item-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b93a8;
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.route-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-small {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    color: #e8eaf0;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-small:active {
    transform: translateY(0);
    filter: brightness(0.92);
}

.edit-route-btn {
    color: #9effc8;
    background: rgba(62, 232, 154, 0.1);
    border-color: rgba(62, 232, 154, 0.2);
}

.edit-route-btn:hover {
    background: rgba(62, 232, 154, 0.15);
    border-color: rgba(62, 232, 154, 0.35);
}

.delete-route-btn {
    color: #ff9a8a;
    background: rgba(255, 80, 60, 0.1);
    border-color: rgba(255, 120, 100, 0.2);
}

.delete-route-btn:hover {
    background: rgba(255, 80, 60, 0.15);
    border-color: rgba(255, 120, 100, 0.35);
}

.duplicate-route-btn {
    color: #9fd4ff;
    background: rgba(80, 160, 255, 0.1);
    border-color: rgba(120, 180, 255, 0.2);
}

.duplicate-route-btn:hover {
    background: rgba(80, 160, 255, 0.15);
    border-color: rgba(120, 180, 255, 0.35);
}

.process-row {
    background-color: rgba(35, 35, 35, 0.8);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    border-left: 4px solid #4a6da7;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.process-row:hover {
    background-color: rgba(45, 45, 45, 0.9);
}

.process-row.last-point {
    border-left: 4px solid #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.point-number {
    font-weight: bold;
    background: linear-gradient(45deg, #3498db, #2980b9);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.process-actions {
    display: flex;
    gap: 10px;
}

.update-coord-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.update-coord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}



.process-settings,
.take-settings {
    margin-top: 15px;
    background: rgba(25, 25, 25, 0.5);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.setting-row label {
    min-width: 130px;
    color: #ddd;
    font-size: 14px;
}

.hidden {
    display: none;
}



/* Drag and drop styles */
.process-row.dragging {
    opacity: 0.4;
    border: 2px dashed rgba(52, 152, 219, 0.7);
    background: rgba(52, 152, 219, 0.1);
}

.ghost-item {
    background-color: rgba(52, 152, 219, 0.2);
    border: 2px dashed #3498db;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.process-placeholder {
    height: 20px;
    background-color: rgba(52, 152, 219, 0.2);
    border-radius: 5px;
    margin: 12px 0;
    border: 1px dashed rgba(52, 152, 219, 0.5);
}

/* Add new animation for route items */
@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 rgba(76, 175, 80, 0);
    }

    50% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }

    100% {
        box-shadow: 0 0 0 rgba(76, 175, 80, 0);
    }
}

.route-item.new-added {
    animation: pulseHighlight 2s ease infinite;
}

.point-number {
    font-weight: bold;
}

.process-actions {
    display: flex;
    gap: 8px;
}

.update-coord-btn {
    background-color: #4a6da7;
}



.process-settings,
.take-settings {
    margin-top: 10px;
}

.setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    width: 42%;
}

.setting-row label {
    min-width: 120px;
}

.hidden {
    display: none;
}

/* Drag and drop styles */
.process-row.dragging {
    opacity: 0.4;
}

.ghost-item {
    background-color: rgba(74, 109, 167, 0.5);
    border: 2px dashed #4a6da7;
    pointer-events: none;
}

.process-row {
    transition: transform 0.2s ease;
}

.process-placeholder {
    height: 20px;
    background-color: rgba(74, 109, 167, 0.3);
    border-radius: 3px;
    margin: 10px 0;
}

.coord-row {
    width: 100%;
    height: 12%;
    display: flex;
}

.coord-inputs {
    width: 55%;
    display: flex;
    float: left;
    height: 10%;
}


button.update-trailer-coord-btn.btn-small {
    color: black;
    margin-top: 24%;
}

button.remove-trailer-coord-btn.btn-small {
    color: black;
    background: #ff7474;
}

select.process-type.form-section {
    color: black;
    background: gainsboro;
}


/* target route */


.selected-target-route-wrapper {
    display: block;
    z-index: 10040;
    pointer-events: none;
    width: min(360px, 92vw);
    min-width: 260px;
    max-width: 92vw;
    height: auto;
    position: fixed;
    top: 50%;
    left: 1.2%;
    right: auto;
    margin: 0;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    color: white;
    padding: 0;
    max-height: 62%;
    overflow: auto;
}


.target-route-text-target {
    font-size: 1.05vh;
    margin: 0 0 6px;
    opacity: 0.82;
    width: 100%;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(231, 242, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.target-route-jobname {
    margin: 0 0 8px;
    width: 100%;
    font-weight: 700;
    font-size: 1.35vh;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.target-route-info-wrapper {
    width: 100%;
    height: auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.target-route-info-box {
    float: none;
    height: auto;
    width: 100%;
    color: rgba(245, 250, 255, 0.95);
    font-size: 1.1vh;
    padding: 4px 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.target-route-need-item-text {
    font-size: 1.05vh;
    margin: 12px 0 6px;
    opacity: 0.85;
    width: 100%;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(231, 242, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.target-route-info-needs-item {
    width: 100%;
    height: auto;
    margin-top: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    max-height: 26vh;
    overflow: auto;
}

.target-route-progress-box {
    width: 100%;
    margin: 14px 0 8px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.target-route-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 1.05vh;
    color: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.target-route-progress-title {
    font-weight: 600;
}

.target-route-progress-label {
    opacity: 0.7;
    font-weight: 400;
    margin-left: 4px;
    text-transform: none;
    letter-spacing: normal;
}

.target-route-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    position: relative;
    box-shadow: none;
}

.route-progress-segments {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    gap: 3px;
    width: 100%;
    min-width: 0;
    height: 10px;
}

.route-progress-seg {
    flex: 1 1 0;
    min-width: 0;
    height: 10px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.route-progress-seg.is-on {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.target-route-progress-percent {
    margin-top: 0;
    font-size: 1.05vh;
    text-align: right;
    color: rgba(221, 255, 243, 0.9);
    font-weight: 600;
}

.target-route-info-need-item-box {
    width: 20% !important;
    min-width: 20% !important;
    max-width: 20% !important;
    padding: 3px 5px;
    margin: 0;
    border-radius: 5px;
    background: rgba(38, 38, 38, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    float: none;
    font-size: 0.76vh;
    text-align: center;
    align-items: center;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 34px;
    box-sizing: border-box;
}

/* 
.target-route-info-need-item-box:first-child {
    margin-left: 5%
} */


.route-info-needs-item-name {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}


.route-info-needs-item-amount {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.route-info-needs-item-img {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    padding: 21px;
}