/* kmt stands for Keyword Match Type - to prevent conflicts */
.kmt-container {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1000px; /* थोड़ा संकरा, अधिक नियंत्रित */
    margin: 30px auto;
    padding: 30px;
    background-color: #ADFF87; /* सफ़ेद पृष्ठभूमि */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* नरम छाया */
    box-sizing: border-box; /* सुनिश्चित करता है कि पैडिंग कुल चौड़ाई का हिस्सा है */
}

.kmt-input-section,
.kmt-options-section,
.kmt-results-section {
    margin-bottom: 30px;
}

.kmt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* कॉलम के बीच गैप */
}

.kmt-col {
    flex: 1;
    min-width: 250px; /* प्रतिसादी व्यवहार के लिए न्यूनतम चौड़ाई */
    display: flex; /* लेबल और टेक्स्टएरिया को संरेखित करने के लिए */
    flex-direction: column;
}

.kmt-col label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.kmt-col textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0; /* हल्की सीमा */
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; /* केवल लंबवत आकार बदलने की अनुमति दें */
    min-height: 150px; /* बेहतर डिफ़ॉल्ट ऊँचाई */
}

.kmt-col textarea:focus {
    border-color: #4285f4; /* Google Blue जैसा फ़ोकस रंग */
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
    outline: none;
}

/* Options Section Styling */
.kmt-options-group {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.kmt-options-group legend {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 15px;
    padding: 0 5px;
}

.kmt-options-group label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    color: #444;
}

.kmt-options-group input[type="radio"],
.kmt-options-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #4285f4; /* ब्लू एक्सेंट */
    transform: scale(1.1); /* थोड़ा बड़ा */
}

.kmt-options-group input[type="radio"]:checked + span,
.kmt-options-group input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: #222;
}

/* Buttons Styling */
.kmt-buttons-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap; /* छोटे स्क्रीन पर रैप करने के लिए */
}

.kmt-button {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    flex-grow: 1;
    min-width: 150px; /* छोटे बटन से बचने के लिए */
}

.kmt-primary {
    background-color: #4285f4; /* Google Blue */
    color: #fff;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

.kmt-primary:hover {
    background-color: #357ae8;
    box-shadow: 0 6px 15px rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
}

.kmt-secondary {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
}

.kmt-secondary:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

.kmt-copy-button {
    background-color: #34a853; /* Google Green */
    color: #fff;
    font-size: 18px;
    padding: 16px 30px;
    box-shadow: 0 4px 10px rgba(52, 168, 83, 0.3);
    width: auto; /* सामग्री के आधार पर बटन के आकार की अनुमति दें */
    align-self: flex-start; /* अपनी कॉलम के भीतर संरेखित करें */
}

.kmt-copy-button:hover {
    background-color: #2e8b4e;
    box-shadow: 0 6px 15px rgba(52, 168, 83, 0.4);
    transform: translateY(-2px);
}

.kmt-copy-message {
    margin-top: 15px;
    color: #34a853;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    width: 100%; /* सुनिश्चित करता है कि संदेश अपनी लाइन लेता है */
}

.kmt-copy-message.show {
    opacity: 1;
}

/* Results Section Layout */
.kmt-results-row {
    align-items: flex-end; /* परिणाम टेक्स्टएरिया को कॉपी बटन के साथ संरेखित करें */
}

.kmt-results-area {
    flex-grow: 3; /* परिणामों को अधिक स्थान दें */
    min-height: 180px; /* बेहतर डिफ़ॉल्ट ऊँचाई */
}

.kmt-copy-button-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* बटन को नीचे धकेलें */
    align-items: flex-start; /* बटन को शुरुआत में संरेखित करें */
    min-width: 200px; /* बटन के लिए न्यूनतम चौड़ाई */
}

/* Responsive Adjustments */
@media (max-width: 800px) {
    .kmt-row {
        flex-direction: column;
        gap: 0; /* छोटे स्क्रीन पर गैप हटा दें */
    }
    .kmt-col {
        min-width: 100%;
        margin-bottom: 20px; /* स्टैक्ड आइटम के बीच स्पेसिंग */
    }
    .kmt-buttons-group,
    .kmt-copy-button-col {
        flex-direction: column;
        width: 100%;
    }
    .kmt-button,
    .kmt-copy-button {
        width: 100%;
        margin-bottom: 10px;
    }
    .kmt-copy-button-col {
        align-items: stretch; /* बटन को पूरी चौड़ाई पर फैलाएं */
    }
    .kmt-container {
        margin: 20px 15px;
        padding: 20px;
    }
    .kmt-header {
        font-size: 1.6em;
    }
}