/* General Page Styles */
body {
    background: #f8f9fa;
    font-family: 'Segoe UI', sans-serif;
}
.container { max-width: 1050px; }

/* Project Name */
.project-name {
    text-align: center;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

/* Map Placeholder */
#map {
    width: 100%;
    height: 400px;
    background: #e9ecef;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* Result Box & Form Box */
.result-box, .form-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.rate-label {
    display: inline-block;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 5px;
    background-color: #f8f9fa;
    cursor: default;
    transition: 0.3s;
}
.rate-label:hover {
    background-color: #e0e0e0;
}


/* Total Cost Display */
h2#totalCostDisplay { color: #198754; font-weight: 700; font-size: 2rem; margin-bottom: 0.5rem; }

/* Total Distance */
#totalDistance { font-size: 1.2rem; }

/* Button-style Radio Options */
.type-option label, .rate-option label {
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    padding: 12px 20px;
    margin: 5px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: center;
}
.type-option label:hover, .rate-option label:hover { background-color: #e0e0e0; }

/* Checked State */
.type-option .btn-check:checked + label, .rate-option .btn-check:checked + label {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Rates text formatting */
.rate-option label { font-weight: bold; display: block; }
.rate-option label small { font-weight: normal; display: block; font-size: 0.9rem; margin-top: 2px; color: #555; }

/* Responsive */
@media(max-width:767px){
    .type-option label, .rate-option label { width: 100%; }
}

/* Buttons */
button#calculateBtn, button#saveBtn { padding: 10px 20px; font-weight: 600; }

/* Toast */
#liveToast { min-width: 250px; }

.form-label, 
.form-check-label {
    font-weight: bold;
}

/* Toggle container */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Toggle switch wrapper */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

/* Hide the default checkbox */
.toggle-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;
    transition: 0.4s;
    border-radius: 28px;
}

/* Slider circle */
.slider::before {
    position: absolute;
    content: "No";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    color: #999;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    transition: 0.4s;
}

/* When checked */
.toggle-switch input:checked + .slider {
    background-color: #28a745; /* green */
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(28px);
    content: "Yes";
    color: #28a745;
}

/* Optional label style */
.toggle-label {
    font-weight: 500;
    font-size: 14px;
}

.vehicle_types-container > label {
    padding: 6px 20px;
}