/* ToolHane — Yüzde Hesaplama */

.yh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.yh-tab {
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dark .yh-tab {
    color: #d1d5db;
    background: #1f2937;
    border-color: #374151;
}

.yh-tab:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.yh-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.dark .yh-tab.is-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.yh-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.dark .yh-label {
    color: #e5e7eb;
}

.yh-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    font-size: 1.0625rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dark .yh-input {
    border-color: #4b5563;
    background: #111827;
    color: #f3f4f6;
}

.yh-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.yh-example {
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: background 0.15s;
}

.dark .yh-example {
    color: #93c5fd;
    background: rgba(30, 58, 138, 0.35);
    border-color: #1e40af;
}

.yh-example:hover {
    background: #dbeafe;
}

.dark .yh-example:hover {
    background: rgba(30, 58, 138, 0.55);
}

.yh-result.flash {
    animation: yhFlash 0.35s ease;
}

@keyframes yhFlash {
    from { background: #0c4a6e; }
    to { background: #0f172a; }
}
