.mwr-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mwr-input-section,
.mwr-output-section {
    margin-bottom: 20px;
}

.mwr-input-section textarea,
.mwr-output-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mwr-input-section textarea:focus {
    border-color: #007cba;
    outline: none;
}

.mwr-output-section textarea {
    background-color: #f8f8f8;
    border-color: #ccc;
}

.mwr-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mwr-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mwr-clean-btn {
    background: #6c757d;
    color: white;
}

.mwr-clean-btn:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-1px);
}

.mwr-clean-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.mwr-copy-btn {
    background: #6c757d;
    color: white;
}

.mwr-copy-btn:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-1px);
}

.mwr-copy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.mwr-clear-btn {
    background: #6c757d;
    color: white;
}

.mwr-clear-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.mwr-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #007cba;
    font-size: 14px;
    font-weight: 600;
}

.mwr-stats span {
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .mwr-container {
        margin: 10px;
        padding: 15px;
    }
    
    .mwr-buttons {
        flex-direction: column;
    }
    
    .mwr-btn {
        width: 100%;
    }
    
    .mwr-stats {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation for copy button */
.mwr-copy-btn.copied {
    background: #17a2b8;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading animation */
.mwr-loading {
    position: relative;
    pointer-events: none;
}

.mwr-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}