/* Yüzde Hesaplama Modülü Özel Stilleri */

#hc-yuzde-hesaplama {
    width: 100%;
    max-width: 680px;
    margin: 20px auto;
    font-family: inherit;
    box-sizing: border-box;
}

#hc-yuzde-hesaplama * {
    box-sizing: border-box;
}

.hc-yh-header {
    margin-bottom: 18px;
    text-align: left;
}

.hc-yh-header h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 780;
    color: #101828;
}

.hc-yh-desc {
    margin: 0;
    font-size: 14px;
    color: #667085;
    line-height: 1.45;
}

/* Seçim Alanı */
.hc-yh-select-group {
    margin-bottom: 20px;
}

.hc-yh-select-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 780;
    color: #1e293b;
}

.hc-yh-select-wrapper {
    position: relative;
    width: 100%;
}

.hc-yh-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 34px 10px 12px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.18s ease;
}

.hc-yh-select:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.hc-yh-select:focus {
    background: #ffffff;
    border-color: #155eef;
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.hc-yh-select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #64748b;
    pointer-events: none;
}

/* Panel Lead */
.hc-yh-panel-lead {
    padding: 12px 14px;
    background: #f8fafc;
    border-left: 4px solid #155eef;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 16px;
    line-height: 1.4;
}

.hc-yh-panel-lead strong {
    color: #0f172a;
}

/* Form Grid */
.hc-yh-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 12px;
}

/* Sık Kullanılanlar */
.hc-yh-quick-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.hc-yh-quick-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.hc-yh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hc-yh-chip {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hc-yh-chip:hover {
    border-color: #155eef;
    color: #155eef;
    background: #eff6ff;
}

/* Radio Grubu */
.hc-yh-radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hc-yh-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    color: #334155;
    cursor: pointer;
    transition: all 0.18s ease;
}

.hc-yh-radio input[type="radio"] {
    width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    cursor: pointer;
}

.hc-yh-radio:hover {
    background: #f1f5f9;
}

/* Buton Satırı */
.hc-yh-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.hc-yh-btn-row .hc-btn {
    flex: 1;
}

.hc-yh-reset-btn {
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.hc-yh-reset-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Sonuç Kartı */
.hc-yh-res-box {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #dbe7ff;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.04);
}

.hc-yh-res-title {
    font-size: 12.5px;
    font-weight: 750;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hc-yh-res-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.hc-yh-res-big {
    font-size: 30px;
    font-weight: 850;
    color: #155eef;
    line-height: 1.15;
    word-break: break-word;
}

.hc-yh-copy-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.18s ease;
}

.hc-yh-copy-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Alt Kartlar */
.hc-yh-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.hc-yh-card {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-break: break-word;
}

.hc-yh-card-label {
    font-size: 11.5px;
    font-weight: 650;
    color: #64748b;
}

.hc-yh-card-value {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
}

.hc-yh-card-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.hc-yh-card-success .hc-yh-card-value {
    color: #15803d;
}

.hc-yh-card-danger {
    background: #fef2f2;
    border-color: #fecaca;
}
.hc-yh-card-danger .hc-yh-card-value {
    color: #b91c1c;
}

/* Oran Çubuğu */
.hc-yh-bar-wrapper {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.hc-yh-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.hc-yh-progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.hc-yh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #155eef, #0f8a5f);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Formül Kutusu */
.hc-yh-formula-box {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    word-break: break-word;
}

.hc-yh-formula-head {
    font-size: 12px;
    font-weight: 780;
    color: #475569;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hc-yh-formula-content strong {
    color: #0f172a;
}

/* Pratik Tablo */
.hc-yh-table-box {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.hc-yh-table-head {
    font-size: 12px;
    font-weight: 780;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hc-yh-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
}

.hc-yh-table-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.hc-yh-ti-pct {
    font-size: 11px;
    font-weight: 700;
    color: #155eef;
}

.hc-yh-ti-val {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 2px;
    word-break: break-word;
}

/* Responsive Düzenlemeler */
@media (max-width: 600px) {
    .hc-yh-grid {
        grid-template-columns: 1fr;
    }
    .hc-yh-cards-row {
        grid-template-columns: 1fr;
    }
    .hc-yh-radio-group {
        grid-template-columns: 1fr;
    }
    .hc-yh-res-big {
        font-size: 24px;
    }
    .hc-yh-btn-row {
        flex-direction: column;
    }
    .hc-yh-reset-btn {
        width: 100%;
        text-align: center;
    }
    .hc-yh-table-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


