:root {
    --primary-color: #ffc107; /* Taksi sarısı */
    --secondary-color: #343a40; /* Koyu gri */
    --bg-color: #f8f9fa; /* Açık arka plan */
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

h1 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2em;
}

.rules {
    background-color: #fff3cd; 
    color: #856404; 
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9em;
    border: 1px solid #ffeeba;
}

/* Mod Geçiş Butonları */
.mode-switch {
    display: flex;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ced4da;
}

.mode-switch button {
    flex-grow: 1;
    padding: 10px 0;
    border: none;
    background-color: #f1f1f1;
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.mode-switch button.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.mode-switch button:not(.active):hover {
    background-color: #e9ecef;
}

/* İçerik Gösterimi */
.mode-content {
    display: none;
    padding-top: 10px;
}

.mode-content.active {
    display: block;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
    position: relative; 
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 1.1em;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Hesapla Butonları */
#calculate-btn-km, #calculate-btn-location {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    width: 100%;
    margin-bottom: 25px;
}

#calculate-btn-km:hover, #calculate-btn-location:hover {
    background-color: #ffda6a;
}

#calculate-btn-km:active, #calculate-btn-location:active {
    transform: scale(0.98);
}

/* Sonuç Kutusu */
.result-box {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.result-label {
    font-size: 1em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.result-amount {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.details {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 10px;
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    .result-amount {
        font-size: 2.5em;
    }
}