.calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.calculator {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    width: 100%;
    max-width: 450px;
}

/* Bilimsel Hesap Makinesi Stilleri */
.scientific-calculator {
    max-width: 100%;
    padding: 1.25rem;
    background-color: #2c3e50;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.scientific-calculator .calculator-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(10, auto);
    gap: 0.4rem;
}

.calculator-display {
    margin-bottom: 1rem;
    position: relative;
    background-color: #f0f0f0;
    border-radius: 6px;
    padding: 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator-display input {
    width: 100%;
    height: 50px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: right;
    font-size: 1.6rem;
    padding: 0 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #333;
}

/* Calculator Mode Display */
.calculator-mode {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
}

/* Açı Modu Göstergesi */
.angle-mode {
    font-size: 0.85rem;
    font-weight: bold;
    color: #2980b9;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #e7f4ff;
}

/* Tuş Stilleri */
.calc-btn {
    border: none;
    padding: 0.6rem 0.3rem;
    font-size: 0.95rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Bilimsel Fonksiyon Tuşları */
.calc-btn.scientific {
    background-color: #34495e;
    color: #ecf0f1;
    font-weight: 500;
}

.calc-btn.scientific:hover {
    background-color: #2c3e50;
}

.calc-btn.scientific:active {
    background-color: #1a2530;
}

/* Toggle Buttons */
.calc-btn.toggle {
    background-color: #7f8c8d;
    color: #ecf0f1;
}

.calc-btn.toggle.active {
    background-color: #16a085;
    color: #fff;
}

/* Sayı Tuşları */
.calc-btn.number {
    background-color: #3498db;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.calc-btn.number:hover {
    background-color: #2980b9;
}

.calc-btn.number:active {
    background-color: #1f6aa5;
}

/* Operatör Tuşları */
.calc-btn.operator {
    background-color: #e74c3c;
    color: #fff;
    font-weight: 600;
}

.calc-btn.operator:hover {
    background-color: #c0392b;
}

/* Özel Operatör Tuşları */
.calc-btn.operator.special {
    background-color: #f39c12;
    color: #fff;
}

.calc-btn.operator.special:hover {
    background-color: #d35400;
}

/* Eşittir Tuşu */
.calc-btn.operator.equals {
    background-color: #27ae60;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.calc-btn.operator.equals:hover {
    background-color: #219955;
}

/* Hafıza Tuşları */
.calc-btn.memory {
    background-color: #9b59b6;
    color: #fff;
}

.calc-btn.memory:hover {
    background-color: #8e44ad;
}

/* Süper ve Alt Simgeler */
.calc-btn sup,
.calc-btn sub {
    font-size: 0.6em;
    position: relative;
}

.calc-btn sup {
    top: -0.5em;
}

.calc-btn sub {
    bottom: -0.25em;
}

/* Bilgi Bölümü Stilleri */
.calculator-info {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.calculator-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.calculator-info h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

.calculator-info p {
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: #495057;
}

.calculator-info ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.calculator-info li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
    color: #495057;
}

.calculator-info strong {
    color: #212529;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .scientific-calculator {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .scientific-calculator .calculator-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
    }
    
    .calc-btn {
        height: 38px;
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
    }
}

@media (max-width: 576px) {
    .scientific-calculator .calculator-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.25rem;
    }
    
    .calc-btn {
        height: 36px;
        font-size: 0.8rem;
        padding: 0.3rem 0.2rem;
    }
    
    .calculator-display input {
        height: 45px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .calculator, .scientific-calculator {
        padding: 0.8rem;
    }

    .calc-btn {
        padding: 0.25rem 0.15rem;
        font-size: 0.75rem;
        height: 34px;
    }

    .calculator-display input {
        height: 40px;
        font-size: 1.2rem;
    }
    
    .calculator-info {
        padding: 1rem;
    }
    
    .calculator-info h3 {
        font-size: 1.2rem;
    }
    
    .calculator-info h4 {
        font-size: 1rem;
    }
} 