/* Modern reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f9fc;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    padding: 20px;
}

.calculator {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 100%;
    text-align: center;
}

h1 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 20px;
}

.routes-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.route input, .input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.route input:focus, .input-group input:focus {
    border-color: #007bff;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    background-color: #004494;
    transform: translateY(0);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 143, 255, 0.5);
}

.result {
    margin-top: 20px;
}

.result h2 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 10px;
}

.result ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.result ul li {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 5px;
}

.lowest-cost {
    background-color: #28a745 !important; /* Green background */
    color: white !important; /* White text */
}

.highest-cost {
    background-color: #dc3545 !important; /* Red background */
    color: white !important; /* White text */
}

/* Checkbox and label alignment */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;  /* Increase checkbox size */
    height: 20px; /* Increase checkbox size */
    margin-right: 10px; /* Space between checkbox and label */
    transform: scale(1.5); /* Scale up the checkbox */
}

.checkbox-group label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}