* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    height: 100vh;
}

.container {
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

header p {
    color: #7f8c8d;
}

.input-section {
    display: flex;
    gap: 1rem;
}

#urlInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#urlInput:focus {
    border-color: #3498db;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.editor-section {
    flex: 1;
    display: flex;
    min-height: 300px;
}

#textEditor {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    line-height: 1.5;
}

#textEditor:focus {
    border-color: #3498db;
}

.actions-section {
    display: flex;
    justify-content: flex-end;
}

.download-btn {
    background-color: #2ecc71;
}

.download-btn:hover {
    background-color: #27ae60;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .input-section {
        flex-direction: column;
    }
}

.actions-section {
    display: flex;
    justify-content: flex-end;
    gap: 10px; /* Added gap between buttons */
}

.copy-btn {
    background-color: #9b59b6; /* Purple color for Copy */
}

.copy-btn:hover {
    background-color: #8e44ad;
}

.download-btn {
    background-color: #2ecc71;
}

.download-btn:hover {
    background-color: #27ae60;
}