/*
 * Bilgi Merkezi > Güç Hesaplama (Views/Document/CalculatePower.cshtml)
 */

/* ── Adım göstergesi ── */
.gc-steps-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.gc-si-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: .4;
    transition: opacity .3s;
}

    .gc-si-item.active {
        opacity: 1;
    }

.gc-si-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: background .3s;
}

.gc-si-item.active .gc-si-num {
    background: #feb324;
}

.gc-si-lbl {
    font-size: 12px;
    color: #555;
}

.gc-si-sep {
    width: 40px;
    height: 1px;
    background: #ddd;
    margin: 0 8px;
}

/* ── Adımlar ── */
.gc-step {
    display: none;
}

    .gc-step.gc-on {
        display: block;
        animation: gcFU .35s ease;
    }

@keyframes gcFU {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Paneller ── */
.gc-panel {
    padding: 24px;
    border-radius: 4px;
}

.gc-panel-compact {
    padding: 20px;
}

.gc-panel-sticky {
    position: sticky;
    top: 20px;
}

.gc-panel-title {
    margin-bottom: 15px;
    color: #999;
    font-size: 13px;
    letter-spacing: .08em;
}

.gc-panel-title-small {
    margin-bottom: 6px;
    font-size: 12px;
}

.gc-panel-title-dark {
    margin-bottom: 5px;
    color: inherit;
}

/* ── Alan kartları (button) ── */
.gc-area-card {
    display: block;
    width: 100%;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    background: transparent;
    font: inherit;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

    .gc-area-card:hover,
    .gc-area-card:focus-visible {
        border-color: #feb324;
        transform: translateY(-4px);
        outline: none;
    }

    .gc-area-card.selected {
        border-color: #feb324;
    }

.gc-area-icon {
    display: block;
    font-size: 36px;
    color: #feb324;
    margin-bottom: 14px;
}

.gc-area-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.gc-area-desc {
    display: block;
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ── Geri + alan rozeti ── */
.gc-back-btn {
    border-radius: 4px;
    margin-right: 10px;
}

.gc-area-badge {
    display: inline-block;
    background: #fff8e6;
    color: #d4920d;
    border: 1px solid #feb324;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    vertical-align: middle;
}

/* ── Cihaz listesi ── */
.gc-dev-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fff;
}

    .gc-dev-row.on {
        border-color: #feb324;
        background: #fffbf0;
    }

.gc-dev-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s;
}

.gc-dev-row.on .gc-dev-check {
    background: #feb324;
    border-color: #feb324;
}

.gc-dev-check-icon {
    width: 9px;
    height: 9px;
    opacity: 0;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    transition: opacity .15s;
}

.gc-dev-row.on .gc-dev-check-icon {
    opacity: 1;
}

.gc-dev-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.gc-dev-watt {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    margin-right: 6px;
}

.gc-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gc-qbtn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
    flex-shrink: 0;
}

    .gc-qbtn:hover {
        background: #fff8e6;
        border-color: #feb324;
    }

.gc-qval {
    width: 44px;
    height: 26px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    -moz-appearance: textfield;
}

    .gc-qval::-webkit-inner-spin-button,
    .gc-qval::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .gc-qval:focus {
        outline: none;
        border-color: #feb324;
    }

/* ── Özel cihaz ekleme ── */
.gc-custom {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed #d5d5d5;
    border-radius: 4px;
    background: #fafafa;
}

.gc-custom-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
}

    .gc-custom-title i {
        color: #feb324;
        font-size: 15px;
    }

.gc-custom-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-custom-input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
}

    .gc-custom-input:focus {
        outline: none;
        border-color: #feb324;
    }

    .gc-custom-input.is-invalid {
        border-color: #d9534f;
    }

.gc-custom-name {
    flex: 1 1 180px;
    min-width: 0;
}

.gc-custom-power {
    flex: 0 1 110px;
    min-width: 80px;
}

.gc-custom-unit {
    flex: 0 0 70px;
}

.gc-custom-add {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    background: #feb324;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .15s;
}

    .gc-custom-add:hover {
        background: #e5a11f;
    }

.gc-custom-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

.gc-custom-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #d9534f;
}

    .gc-custom-error.show {
        display: block;
    }

/* Kullanıcının eklediği satır */
.gc-dev-row.gc-dev-custom {
    border-style: dashed;
}

.gc-dev-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e8f3f6;
    color: #1f839f;
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.gc-dev-remove {
    width: 24px;
    height: 24px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #999;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

    .gc-dev-remove:hover {
        border-color: #d9534f;
        background: #d9534f;
        color: #fff;
    }

/* ── Anlık güç özeti ── */
.gc-live-kw {
    font-size: 38px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 10px;
}

    .gc-live-kw small {
        font-size: 18px;
        font-weight: 400;
        color: #999;
    }

.gc-live-bar {
    height: 5px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
}

.gc-live-fill {
    height: 100%;
    border-radius: 5px;
    background: #feb324;
    transition: width .4s cubic-bezier(.4,0,.2,1);
    width: 0;
}

.gc-live-devices {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
    min-height: 60px;
}

.gc-live-empty {
    color: #bbb;
}

/* ── Sonuç bandı ── */
.gc-result-banner {
    border-radius: 4px;
    overflow: hidden;
}

.gc-rb-top {
    background: #1f839f;
    padding: 24px 28px;
}

.gc-rb-eyebrow {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: 6px;
}

.gc-rb-kva {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.gc-rb-type {
    font-size: 14px;
    color: rgba(255,255,255,.75);
}

.gc-rb-stats {
    background: #feb324;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 0;
}

.gc-rb-stat {
    flex: 1;
    text-align: center;
}

.gc-rb-stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(0,0,0,.5);
    margin-bottom: 2px;
}

.gc-rb-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.gc-rb-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(0,0,0,.15);
}

/* ── Kapasite göstergesi ── */
.gc-meter-title {
    margin-bottom: 8px;
    color: #999;
    font-size: 11px;
    letter-spacing: .08em;
}

    .gc-meter-title span {
        color: #feb324;
        font-weight: 700;
    }

.gc-meter {
    height: 8px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.gc-meter-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #1f839f, #feb324);
    width: 0;
    transition: width .9s cubic-bezier(.4,0,.2,1);
}

/* ── Yardımcı ── */
.fullwidth {
    width: 100%;
    display: block;
    text-align: center;
}

@media (max-width: 767px) {
    .gc-live-kw {
        font-size: 28px;
    }

    .gc-rb-kva {
        font-size: 24px;
    }

    .gc-steps-indicator {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .gc-si-sep {
        display: none;
    }

    .gc-custom-name {
        flex-basis: 100%;
    }

    .gc-custom-power {
        flex: 1 1 auto;
    }

    .gc-custom-add {
        flex: 1 1 100%;
    }
}
