body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1a202c;
    margin-top: 0;
}

p {
    color: #555;
    line-height: 1.6;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
    resize: vertical;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: block;
    width: 100%;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #a0c7ff;
    cursor: not-allowed;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#results-container {
    margin-top: 20px;
}

.result-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    word-wrap: break-word;
}

.result-item.success {
    border-left: 5px solid #28a745; /* Green for success */
}

.result-item.error {
    background-color: #fff3f3;
    border-left: 5px solid #dc3545; /* Red for error */
}

.result-item strong {
    color: #0056b3;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

/* Add these styles to the end of style.css */
#download-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.download-btn {
    background-color: #28a745;
    margin-right: 10px;
    margin-bottom: 10px;
    width: auto; /* Override the 100% width */
}

.download-btn:hover {
    background-color: #218838;
}