/* Beton Hesaplayıcı Stilleri */

:root {
    --primary-color: #007bff;
    --primary-hover: #0069d9;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #555;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Poppins', Arial, sans-serif;
    --transition: all 0.3s ease;
}

.concrete-calculator-container {
    font-family: var(--font-family);
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    color: var(--text-color);
}

.concrete-calculator {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
}

.concrete-calculator .calc-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    font-size: 1.5rem;
}

.calculator-description {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablar */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Tab İçerikleri */
.calc-tab-content {
    display: none;
    padding: 15px 0;
}

.calc-tab-content.active {
    display: block;
}

/* Hesaplama Bölümleri */
.calculator-section {
    margin-bottom: 30px;
}

.section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.section-form {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.section-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: white;
}

/* Giriş Satırları */
.calculator-input-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 20px;
}

.input-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-with-unit {
    display: flex;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: #fff;
}

.input-with-unit select,
.unit-placeholder {
    width: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 0 4px 4px 0;
    border-left: none;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    color: var(--text-muted);
}

.unit-placeholder {
    text-align: center;
    background-color: #f5f5f5;
    color: var(--text-muted);
}

/* Hesapla Düğmesi */
.calculate-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-btn:hover {
    background-color: var(--primary-hover);
}

.calculate-btn i {
    font-size: 1.1rem;
}

/* Sonuç Bölümü */
.calculator-results {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 25px;
    box-shadow: var(--shadow);
}

.results-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.results-header h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.results-header h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
}

.result-content {
    flex: 1;
}

.result-label {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.result-value {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Hesaplama Adımları */
.calculation-steps {
    margin-top: 20px;
}

.steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.steps-header h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
}

.steps-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
}

.steps-container {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.step-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Beton Bilgileri Bölümü */
.concrete-info {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-top: 30px;
}

.concrete-info h3 {
    margin-top: 0;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.concrete-info h3:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.concrete-info h4 {
    margin-top: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.concrete-info p, .concrete-info li {
    color: var(--text-muted);
    line-height: 1.6;
}

.concrete-info ul {
    padding-left: 20px;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .section-image {
        order: -1;
    }
    
    .section-image img {
        max-height: 200px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group {
        width: 100%;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .calc-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .tab-label {
        display: none;
    }
    
    .tab-icon {
        margin: 0;
    }
} 