/* Yüzde Hesaplayıcı Stilleri */
.percentage-calculator-container {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.calculator-title {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.calculator-description {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.percentage-calculator {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calculator-section {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator-section h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Sekme Butonları */
.calc-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-btn {
    padding: 10px 15px;
    background-color: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.tab-btn:hover:not(.active) {
    background-color: #d6d8db;
}

/* Sekme İçeriği */
.calc-tab-content {
    display: none;
}

.calc-tab-content.active {
    display: block;
}

/* Form Elemanları */
.input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.input-label {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Yüzde Girişi */
.percent-input {
    position: relative;
    display: flex;
    align-items: center;
}

.percent-input input {
    padding-right: 30px;
}

.percent-sign {
    position: absolute;
    right: 10px;
    font-weight: bold;
    color: #777;
}

/* Sonuç Alanı */
.result {
    display: flex;
    flex-direction: column;
}

.result-display {
    padding: 8px 12px;
    background-color: #e9f7ef;
    border: 1px solid #a3e4d7;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Butonlar */
.calculator-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.calc-btn {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.calc-btn:hover {
    background-color: #2980b9;
}

/* Hesaplama Adımları */
.calculation-steps {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.calculation-steps h4 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 10px;
}

.steps-container {
    background-color: #f1f8e9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    min-height: 100px;
}

.step {
    margin-bottom: 10px;
    line-height: 1.5;
}

.step-title {
    font-weight: bold;
    color: #2c3e50;
}

.no-steps {
    color: #777;
    font-style: italic;
}

/* İpuçları ve Formüller */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.tip {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.tip h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
}

.formula {
    background-color: #f9f9f9;
    padding: 10px;
    border-left: 3px solid #3498db;
    margin-top: 10px;
}

.formula p {
    margin: 5px 0;
    font-family: "Courier New", monospace;
}

/* Bilgi Bölümü */
.percentage-info {
    margin-top: 40px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.percentage-info h3, .percentage-info h4 {
    color: #2c3e50;
}

.percentage-info h3 {
    margin-top: 0;
}

.percentage-info h4 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.percentage-info ul {
    padding-left: 20px;
}

.percentage-info li {
    margin-bottom: 5px;
}

/* Duyarlı Tasarım */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: center;
    }
    
    .input-label {
        width: 100%;
        max-width: 300px;
    }
    
    .tips-container {
        grid-template-columns: 1fr;
    }
}
