/* --- Krutidev to Mangal Converter Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

.k2m-wrapper {
    font-family: 'Poppins', sans-serif;
    background-color: #8B4513; /* Saddle Brown */
    padding: 30px; border-radius: 20px;
    margin: 40px auto;
}
.k2m-container {
    background-color: #FDF5E6; /* Old Lace / Cream */
    border-radius: 16px; padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center; color: #4A2E2A;
}
.k2m-header .fa-font { font-size: 2.5rem; color: #8B4513; margin-bottom: 10px; }
.k2m-header h2 { font-size: 1.8rem; color: #4A2E2A; margin: 0 0 5px; }
.k2m-header p { color: #6B4E3D; margin-bottom: 25px; }

.k2m-converter-grid {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 20px;
}
.k2m-textarea-wrap { text-align: left; position: relative; }
.k2m-textarea-wrap label { display: block; margin-bottom: 8px; font-weight: 500; }
.k2m-textarea-wrap textarea {
    width: 100%; height: 250px; box-sizing: border-box; resize: vertical;
    padding: 15px; border-radius: 8px; border: 1px solid #D2B48C; /* Tan */
    background-color: #fff; color: #4A2E2A;
    font-size: 1rem; line-height: 1.6;
}
.k2m-textarea-wrap textarea:focus { outline-color: #8B4513; }
#k2m-krutidev-text { font-family: 'Kruti Dev 010', 'Courier New', monospace; } /* Apply Krutidev if installed */

.k2m-action-area { display: flex; justify-content: center; }
.k2m-btn {
    padding: 12px 24px; font-size: 1rem; font-weight: 700;
    color: #fff; background-color: #8B4513; /* Brown */
    border: none; border-radius: 50px; cursor: pointer;
    transition: all 0.2s ease; position: relative;
    min-width: 150px; text-align: center;
}
.k2m-btn:hover { background-color: #A0522D; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(139,69,19,0.3); }
.k2m-spinner {
    border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff;
    border-radius: 50%; width: 20px; height: 20px;
    animation: k2m-spin 1s linear infinite; display: inline-block;
}
@keyframes k2m-spin { to { transform: rotate(360deg); } }

.k2m-copy-btn {
    position: absolute; bottom: 10px; right: 10px;
    background: #8B4513; 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;
}
.k2m-copy-btn:hover { background-color: #A0522D; }
.k2m-message { padding: 12px; margin-top: 20px; border-radius: 8px; background-color: #FFCDD2; color: #D32F2F; }

@media (max-width: 768px) {
    .k2m-converter-grid { grid-template-columns: 1fr; }
    .k2m-action-area { margin: 10px 0; }
    .k2m-btn { width: 100%; }
}