* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 10px;
    touch-action: manipulation;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
}

#map-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 300px;
    max-height: 500px;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

.info-panel {
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-panel p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
}

#start-track {
    background-color: #2ecc71;
    color: white;
}

#start-track:hover, #start-track:active {
    background-color: #27ae60;
}

#stop-track {
    background-color: #e74c3c;
    color: white;
}

#stop-track:hover, #stop-track:active {
    background-color: #c0392b;
}

#center-map {
    background-color: #3498db;
    color: white;
}

#center-map:hover, #center-map:active {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    color: #ecf0f1;
    cursor: not-allowed;
}

/* Statusmeddelanden */
#status.info { color: #2c3e50; }
#status.success { color: #27ae60; }
#status.warning { color: #e67e22; }
#status.error { color: #e74c3c; }

/* Leaflet-anpassningar */
.leaflet-control-attribution {
    font-size: 9px !important;
    padding: 2px 5px !important;
}

.leaflet-control {
    margin-bottom: 15px !important;
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .info-panel p {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 1rem;
    }
}