/* --- Tamil Font Converter Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@400;500;700&family=Poppins:wght@400;500;700&display=swap');

.tfc-wrapper {
    font-family: 'Poppins', sans-serif;
    background-color: #800000; /* Maroon */
    padding: 30px; border-radius: 20px;
    margin: 40px auto;
}
.tfc-container {
    background-color: #fff;
    border-radius: 16px; padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center; color: #4A0000;
}
.tfc-header .fa-language { font-size: 2.5rem; color: #800000; margin-bottom: 10px; }
.tfc-header h2 { font-size: 1.8rem; color: #4A0000; margin: 0 0 5px; }
.tfc-header p { color: #6C4040; margin-bottom: 25px; }

.tfc-options-bar { margin-bottom: 25px; text-align: center; }
.tfc-options-bar label { margin-right: 10px; font-weight: 500; }
.tfc-options-bar select {
    padding: 8px 12px; border: 1px solid #D2B48C; border-radius: 8px;
    font-size: 1rem; background: #FFF8F0;
}
.tfc-options-bar select:focus { outline-color: #800000; }

.tfc-converter-grid {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 20px;
}
.tfc-textarea-wrap { text-align: left; position: relative; }
.tfc-textarea-wrap label { display: block; margin-bottom: 8px; font-weight: 500; }
.tfc-textarea-wrap textarea {
    width: 100%; height: 250px; box-sizing: border-box; resize: vertical;
    padding: 15px; border-radius: 8px; border: 1px solid #D2B48C;
    background-color: #FFF8F0; color: #4A0000;
    font-family: 'Hind Madurai', sans-serif; font-size: 1.1rem; line-height: 1.7;
}
.tfc-textarea-wrap textarea:focus { outline-color: #800000; }
#tfc-input-text[data-font="bamini"] { font-family: 'Bamini', monospace; } /* Apply Bamini if installed */

.tfc-action-area { display: flex; justify-content: center; }
.tfc-btn {
    padding: 12px 24px; font-size: 1rem; font-weight: 700;
    color: #fff; background-color: #800000; /* Maroon */
    border: none; border-radius: 50px; cursor: pointer;
    transition: all 0.2s ease; position: relative;
    min-width: 150px; text-align: center;
}
.tfc-btn:hover { background-color: #A00000; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(128,0,0,0.3); }
.tfc-spinner {
    border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff;
    border-radius: 50%; width: 20px; height: 20px;
    animation: tfc-spin 1s linear infinite; display: inline-block;
}
@keyframes tfc-spin { to { transform: rotate(360deg); } }

.tfc-copy-btn {
    position: absolute; bottom: 10px; right: 10px;
    background: #800000; color: #fff; border: none;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all 0.2s ease;
}
.tfc-copy-btn:hover { background-color: #A00000; }

@media (max-width: 768px) {
    .tfc-converter-grid { grid-template-columns: 1fr; }
    .tfc-action-area { margin: 10px 0; }
    .tfc-btn { width: 100%; }
}