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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 400px;
    padding: 30px;
    background: #f8f9fa;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.input-section {
    margin-bottom: 30px;
}

#addressList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.address-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.address-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.address-input:focus {
    outline: none;
    border-color: #4285f4;
}

.time-input {
    width: 120px;
    padding: 12px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.time-input:focus {
    outline: none;
    border-color: #4285f4;
}

.remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #cc0000;
}

.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #4285f4;
    color: white;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: white;
    color: #4285f4;
    border: 2px solid #4285f4;
}

.btn-secondary:hover {
    background: #f0f7ff;
}

.route-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-summary {
    font-size: 14px;
}

.route-order {
    margin: 10px 0 20px 20px;
    color: #555;
}

.route-order li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.time-estimate {
    color: #777;
    font-size: 13px;
}

.route-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.route-stats p {
    margin-bottom: 8px;
    color: #333;
}

.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 50vh;
    }

    .map-container {
        height: 50vh;
    }
}
