body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
    font-size: 1.22rem;
    letter-spacing: 0.01em;
    animation: bgFade 1.5s ease;
}
@keyframes bgFade {
    from { background: #fff; }
    to { background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%); }
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-size: 2.6rem;
    font-weight: 900;
    text-shadow: 0 5px 16px rgba(52,152,219,0.08);
    animation: slideDown 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

form {
    background: rgba(255,255,255,0.96);
    padding: 32px 28px 28px 28px;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(52, 152, 219, 0.10), 0 1.5px 6px rgba(44,62,80,0.07);
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    border-top: 5px solid #6dd5fa;
    animation: fadeInUp 1.2s 0.2s cubic-bezier(.68,-0.55,.27,1.55) both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

input[type="text"] {
    width: 97%;
    padding: 14px;
    margin: 10px 0 20px 0;
    border: 1.5px solid #bfc9d1;
    border-radius: 8px;
    font-size: 1.12rem;
    background: #fafdff;
    transition: border 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(52,152,219,0.03);
}
input[type="text"]:focus {
    border: 2px solid #3498db;
    outline: none;
    background: #f0faff;
    box-shadow: 0 4px 16px rgba(52,152,219,0.10);
}
input[type="text"]:hover {
    border: 2px solid #6dd5fa;
}

button {
    background: linear-gradient(90deg, #3498db 60%, #6dd5fa 100%);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(52,152,219,0.07);
    transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
    margin-top: 12px;
    margin-bottom: 4px;
}
button:hover {
    background: linear-gradient(90deg, #2980b9 60%, #3498db 100%);
    transform: translateY(-3px) scale(1.05) rotate(-1deg);
    box-shadow: 0 8px 24px rgba(52,152,219,0.16);
}
button:active {
    background: #3498db;
    transform: scale(0.98);
}

#dashboard-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    margin: 24px auto 0 auto;
    max-width: 1200px;
    width: 100%;
}
#map {
    flex: 1 1 350px;
    min-width: 330px;
    max-width: 600px;
    height: 350px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(52, 152, 219, 0.11);
    border: 2px solid #eaf2fb;
    margin-bottom: 18px;
    background: #fff;
    z-index: 1;
}
#stats-panel {
    flex: 1 1 350px;
    min-width: 330px;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(52, 152, 219, 0.10);
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
}
#stats-summary {
    font-size: 1.08rem;
    color: #2c3e50;
    margin-bottom: 8px;
    margin-top: 8px;
    text-align: left;
    width: 100%;
    line-height: 1.5;
}
#stats-chart {
    margin-bottom: 10px;
    background: #fafdff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(52,152,219,0.04);
    padding: 8px;
}
#simulate-btn {
    background: linear-gradient(90deg, #43cea2 60%, #185a9d 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.13rem;
    font-weight: 700;
    transition: background 0.18s, transform 0.11s;
    margin-top: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    letter-spacing: 0.04em;
}
#simulate-btn:hover {
    background: linear-gradient(90deg, #185a9d 60%, #43cea2 100%);
    transform: translateY(-2px) scale(1.04);
}
@media (max-width: 900px) {
    #dashboard-container {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    #map, #stats-panel {
        max-width: 100%;
        width: 100%;
    }
}
#result {
    background: #eaf2fb;
    padding: 32px 24px 28px 24px;
    border-radius: 18px;
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    min-height: 40px;
    box-shadow: 0 2px 24px rgba(52, 152, 219, 0.12);
    opacity: 0;
    animation: fadeIn 1.1s 0.2s forwards cubic-bezier(.68,-0.55,.27,1.55);
    font-size: 1.18rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-card {
    background: linear-gradient(90deg, #fff 80%, #eaf6fb 100%);
    border-left: 7px solid #3498db;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.10);
    padding: 22px 28px 18px 24px;
    transition: box-shadow 0.22s, transform 0.18s;
    animation: cardPop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
    position: relative;
    overflow: hidden;
}
.result-card:hover {
    box-shadow: 0 12px 36px rgba(52, 152, 219, 0.20);
    transform: translateY(-5px) scale(1.03) rotate(-1deg);
}
@keyframes cardPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-title {
    font-weight: 900;
    color: #2980b9;
    margin-bottom: 10px;
    font-size: 1.32rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 7px;
    animation: fadeInLeft 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.result-route {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.08rem;
    animation: routeAnim 0.9s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes routeAnim {
    from { opacity: 0; letter-spacing: 0.4em; }
    to { opacity: 1; letter-spacing: 0.03em; }
}

.result-distance {
    color: #16a085;
    font-weight: 700;
    font-size: 1.09rem;
    animation: fadeInUp 0.9s cubic-bezier(.68,-0.55,.27,1.55);
    margin-top: 2px;
    letter-spacing: 0.01em;
}

