:root {
    --official-blue: #1a365d;
    --swiss-red: #d52b1e;
    --border-color: #cbd5e0;
    --success-green: #2e7d32;
    --error-red: #d32f2f;
}

* { box-sizing: border-box; } /* Taşmayı önleyen kritik ayar */

.swiss-rechner-wrapper { 
    width: 100%; 
    max-width: 450px; 
    margin: 20px auto; 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    overflow: hidden; 
}

.swiss-rechner-wrapper::before { content: ""; display: block; height: 6px; background: var(--swiss-red); }

.rechner-header { padding: 25px 20px; text-align: center; }
.rechner-header h2 { font-size: 20px; color: var(--official-blue); margin: 10px 0 5px; }
.rechner-header p { font-size: 14px; color: #718096; margin: 0; }

.rechner-content { padding: 20px; background: #f8fafc; }

.input-box { margin-bottom: 20px; }
.input-box label { display: block; font-size: 13px; font-weight: 700; color: #4a5568; margin-bottom: 8px; }

.input-row { 
    display: flex; 
    border: 2px solid var(--border-color); 
    border-radius: 10px; 
    background: #fff; 
    overflow: hidden;
}

.input-row input { 
    flex: 1; 
    width: 50%; /* Mobilde daralmayı sağlar */
    padding: 14px; 
    border: none; 
    font-size: 18px; 
    font-weight: 600; 
    outline: none; 
}

.input-row .unit { 
    padding: 0 15px; 
    background: #edf2f7; 
    display: flex; 
    align-items: center; 
    font-size: 12px; 
    font-weight: 800; 
    color: #4a5568; 
    border-left: 1px solid var(--border-color);
    white-space: nowrap; /* Yazının aşağı kaymasını önler */
}

/* Sonuç Paneli ve Bar */
.result-section { 
    margin-top: 10px; 
    padding: 25px 15px; 
    background: #fff; 
    border: 2px solid var(--official-blue); 
    border-radius: 12px; 
    text-align: center; 
}

.grade-display { width: 100%; border: none; background: transparent; font-size: 64px; font-weight: 900; text-align: center; color: var(--official-blue); pointer-events: none; }

.grade-bar-container { margin: 25px 0 10px; }
.grade-bar-track { height: 10px; background: #e2e8f0; border-radius: 10px; position: relative; background: linear-gradient(to right, #feb2b2, #9ae6b4); }
.grade-pointer { width: 20px; height: 20px; background: #fff; border: 4px solid var(--official-blue); border-radius: 50%; position: absolute; top: -5px; left: 0; transform: translateX(-50%); transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.grade-bar-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; font-weight: bold; color: #a0aec0; }

.motivation-area { margin-top: 15px; font-size: 13px; color: #4a5568; line-height: 1.5; padding: 10px; background: #f7fafc; border-radius: 8px; display: none; }

/* Butonlar Alanı */
.action-area { padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; }

.whatsapp-modern-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-modern-btn:hover { background: #20ba59; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }

.reset-button { 
    background: transparent; 
    color: #a0aec0; 
    border: none; 
    padding: 10px; 
    font-size: 12px; 
    font-weight: 600; 
    cursor: pointer; 
    text-transform: uppercase;
}

/* Durum Renkleri */
.success-mode { color: var(--success-green) !important; border-color: var(--success-green) !important; }
.fail-mode { color: var(--error-red) !important; border-color: var(--error-red) !important; }

/* Mobil Ayarlaması */
@media (max-width: 480px) {
    .swiss-rechner-wrapper { margin: 10px; border-radius: 0; border: none; }
    .grade-display { font-size: 50px; }
}