/* İki Bilinmeyenli KDV Hesaplama Modülü CSS */

/* Grid layout - 4 sütun */
.hb-iki-kdv .hb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.hb-iki-kdv .hb-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Butonlar */
.hb-iki-kdv .hb-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.hb-iki-kdv .hb-actions-after {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.hb-iki-kdv .hb-actions-after.hb-hidden {
    display: none !important;
}

/* Uyarı ve panel */
.hb-iki-kdv .hb-warn {
    margin: 15px 0;
    display: none;
}

.hb-iki-kdv .hb-panel {
    display: none;
    margin-top: 15px;
}

.hb-iki-kdv .hb-panel.show {
    display: block;
}

/* Sonuç kutusu */
.hb-iki-kdv .hb-results {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.hb-iki-kdv .hb-result-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hb-iki-kdv .hb-result-item {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.hb-iki-kdv .hb-result-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hb-iki-kdv .hb-result-item .label {
    font-weight: 600;
    color: #333;
}

.hb-iki-kdv .hb-result-item .value {
    text-align: right;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

/* 3 Grup Renk Sistemi */
.hb-iki-kdv .hb-result-group:nth-child(1) .hb-result-item {
    background: #DFF0D8;
}

.hb-iki-kdv .hb-result-group:nth-child(2) .hb-result-item {
    background: #D9EDF7;
}

.hb-iki-kdv .hb-result-group:nth-child(3) .hb-result-item {
    background: #FCF8E3;
}

/* Input hata border */
.hb-iki-kdv .hb-input.error {
    border-color: #dc3545 !important;
}

/* Loading spinner */
.hb-iki-kdv .hb-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: hb-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes hb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disclaimer ve Info arası boşluk */
.hb-iki-kdv .hb-disclaimer + .hb-alert {
    margin-top: 15px;
}

.hb-iki-kdv .hb-alert {
    margin-top: 0;
}

/* İstatistikler - Wrap dışında */
.hb-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.hb-stat-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    min-height: 90px;
    height: 100%;
}

.hb-stat-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hb-stat-label {
    font-size: 16px;
    color: #6c757d;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.hb-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2B542C;
    line-height: 1.2;
    margin: 0;
}

.hb-stat-value.hb-stat-date {
    font-size: 32px;
    color: #2B542C;
    font-weight: 700;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hb-iki-kdv .hb-grid {
        grid-template-columns: 1fr;
    }
    
    .hb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hb-stat-card {
        min-height: 80px;
    }
    
    .hb-stat-label {
        font-size: 14px;
    }
    
    .hb-stat-value {
        font-size: 24px;
    }
    
    .hb-stat-value.hb-stat-date {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hb-stats-grid {
        grid-template-columns: 1fr;
    }
}

