/* Basic styling for the webpage content extractor */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

h1 {
    color: #333;
    text-align: center;
}

.input-method {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.input-method label {
    margin-right: 20px;
    cursor: pointer;
}

.input-area {
    margin-bottom: 20px;
}

#source {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    box-sizing: border-box;
    min-height: 80px;
    resize: vertical;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fafafa;
}

.result h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#extracted-content {
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    overflow-y: auto;
}

/* Error message styling */
.error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success {
    color: #388e3c;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Editor toolbar */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.editor-toolbar button {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
}

.editor-toolbar button:hover {
    background-color: #e9e9e9;
}

.editor-toolbar button.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.editor-toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Editor container */
#editor {
    min-height: 300px;
    max-height: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Copy buttons */
.copy-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.copy-buttons button {
    flex: 1;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .editor-toolbar button {
        width: 100%;
        text-align: left;
    }
    
    .copy-buttons {
        flex-direction: column;
    }
}