/* --- Main Container for the Minifier Tool --- */
.cmt-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden; /* Important for border-radius on children */
}

/* --- Tabs Styling --- */
.cmt-tabs {
    display: flex;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.cmt-tab-button {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease-in-out;
    border-bottom: 3px solid transparent;
}

.cmt-tab-button:hover {
    background-color: #f0f0f0;
    color: #111;
}

.cmt-tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* --- Content & Textareas --- */
.cmt-content {
    padding: 25px;
}

#cmt-input, #cmt-output {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box; /* Important for padding */
}

/* --- Action Buttons --- */
.cmt-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cmt-actions button {
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.2s;
}

#cmt-minify-btn {
    background-color: #0073aa;
    color: white;
}
#cmt-minify-btn:hover {
    background-color: #005a87;
}

#cmt-copy-btn {
    background-color: #28a745;
    color: white;
}
#cmt-copy-btn:hover {
    background-color: #218838;
}

#cmt-clear-btn {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}
#cmt-clear-btn:hover {
    background-color: #e0e0e0;
}

/* --- Output Section --- */
#cmt-output-container {
    margin-top: 25px;
}
#cmt-output-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}

#cmt-stats {
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}
#cmt-stats span {
    font-weight: bold;
    color: #333;
}
#cmt-stats .savings {
    color: #28a745;
}