/* Main Wrapper */
.techdeiyo-converter-wrapper {
    max-width: 800px;
    margin: 50px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.converter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
}

.converter-tabs .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.converter-tabs .tab-btn:hover {
    color: #b82006;
}

.converter-tabs .tab-btn.active {
    color: #b82006;
    border-bottom-color: #b82006;
}

/* Section Layout */
.converter-section {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.converter-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.converter-box h3 {
    margin-top: 0;
    font-size: 18px;
    color: #444;
    margin-bottom: 12px;
}

.converter-box textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    resize: vertical;
}

.converter-box textarea:focus {
    border-color: #b82006;
    outline: none;
    box-shadow: 0 0 0 2px rgba(184, 32, 6, 0.2);
}

.fm-font {
    font-family: 'FMAbhaya', 'DL-Paras', sans-serif;
    /* Fallback to standard Sinhala fonts or define @font-face if needed */
}

/* Controls */
.controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.controls button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.controls button:first-child {
    background-color: #b82006;
    color: white;
}

.controls button:first-child:hover {
    background-color: #961a05;
}

.controls button:nth-child(2) {
    background-color: #f0f0f0;
    color: #333;
}

.controls button:nth-child(2):hover {
    background-color: #e0e0e0;
}

.error-msg {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
    .converter-tabs .tab-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}