/* Genel Stil */
.kac-tl-container {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
}

/* Ana Kapsayıcı */
.kac-tl-container .main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* İçerik Düzeni */
.kac-tl-container .content-wrapper {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Çevirici Bölümü */
.kac-tl-container .currency-converter-container {
    flex: 1;
    max-width: 800px;
    box-sizing: border-box;
}

.kac-tl-container .converter-content h1 {
    font-size: 28px;
    margin: 20px 0;
    border-left: 15px solid #64bc45;
    padding-left: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.kac-tl-container .converter-content h1:hover {
    color: #2c3e50;
}

.kac-tl-container .converter-and-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
    align-items: stretch;
}

.kac-tl-container .converter-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.kac-tl-container .converter-container:hover {
    transform: translateY(-5px);
}

/* İçerik Bölümü */
.kac-tl-container .currency-content-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.kac-tl-container .currency-content-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.kac-tl-container .currency-content-section h3 {
    font-size: 20px;
    margin: 15px 0 10px;
    color: #333;
}

.kac-tl-container .currency-content-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.kac-tl-container .currency-content-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.kac-tl-container .currency-content-section ul li {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
}

/* Diğer Para Birimleri Bölümü */
.kac-tl-container .other-currencies-container {
    margin-top: 20px;
    max-width: 800px;
}

.kac-tl-container .other-currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.kac-tl-container .currency-box {
    background: #ffffff;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kac-tl-container .currency-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f0f4ff;
}

.kac-tl-container .currency-flag {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kac-tl-container .sidebar-wrapper {
    width: 300px;
    box-sizing: border-box;
}

.kac-tl-container .error-message {
    background: #fff5f5;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.kac-tl-container .market-closed-message {
    background: #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

/* Yatay Çevirici Tasarımı */
.horizontal-converter {
    background: #e0e5ec;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0 auto;
}

.converter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.converter-title {
    margin-bottom: 1.5rem;
}

.converter-title h2 {
    color: #6c63ff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.converter-title p {
    color: #6c757d;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.input-container {
    margin-bottom: 1.2rem;
}

.input-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #5a5a5a;
}

.neumorphic-input {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: #e0e5ec;
    box-shadow: inset 5px 5px 8px #a3b1c6, inset -5px -5px 8px #ffffff;
    transition: box-shadow 0.3s ease;
}

.neumorphic-input:hover {
    box-shadow: inset 3px 3px 6px #a3b1c6, inset -3px -3px 6px #ffffff;
}

.neumorphic-input input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #3d3d3d;
}

.neumorphic-input select {
    padding: 0.8rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #3d3d3d;
    cursor: pointer;
    min-width: 90px;
}

.neumorphic-input select:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.neumorphic-btn {
    width: 100%;
    padding: 0.8rem;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.neumorphic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #5a54d6;
}

.result-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-display {
    padding: 1.5rem;
    background: #e0e5ec;
    border-radius: 12px;
    text-align: center;
    box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
    transition: box-shadow 0.3s ease;
}

.result-display:hover {
    box-shadow: inset 3px 3px 8px #a3b1c6, inset -3px -3px 8px #ffffff;
}

.result-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #6c63ff;
}

.rate-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rate-box {
    padding: 0.7rem 1rem;
    background: #e0e5ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.buy-rate {
    color: #48bb78;
    font-weight: 600;
}

.sell-rate {
    color: #f56565;
    font-weight: 600;
}

.update-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Hesaplama Detayları Tablosu */
.calculation-details {
    margin-top: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.calculation-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.calculation-table th,
.calculation-table td {
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.calculation-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #555;
}

.calculation-table tbody tr:last-child {
    border-bottom: none;
}

.calculation-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.calculation-table tbody tr:hover {
    background: #f0f4ff;
    transition: background 0.3s ease;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .kac-tl-container .content-wrapper {
        flex-direction: column;
    }
    .kac-tl-container .converter-container {
        flex-direction: column;
    }
    .kac-tl-container .sidebar-wrapper {
        width: 100%;
    }
    .kac-tl-container .currency-converter-container {
        max-width: 100%;
        padding: 0 10px;
    }
    .horizontal-converter {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
        padding: 1.5rem;
        margin: 0 auto;
    }
    .result-value {
        font-size: 1.5rem;
    }
    .rate-box {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    .converter-title h2 {
        font-size: 1.3rem;
    }
    .converter-title p {
        font-size: 0.8rem;
    }
    .input-container label {
        font-size: 0.85rem;
    }
    .neumorphic-input input,
    .neumorphic-input select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    .neumorphic-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    .currency-content-section,
    .other-currencies-container {
        max-width: 100%;
    }
    .calculation-table th,
    .calculation-table td {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .horizontal-converter {
        padding: 1rem;
    }
    .result-value {
        font-size: 1.3rem;
    }
    .rate-container {
        gap: 0.5rem;
    }
    .rate-box {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    .other-currencies-grid {
        grid-template-columns: 1fr;
    }
    .currency-flag {
        width: 40px;
        height: 40px;
    }
    .calculation-table th,
    .calculation-table td {
        font-size: 12px;
        padding: 8px;
    }
}