body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #222;
}

.demo-section, .docs-section {
    margin-bottom: 2.5rem;
}

#proxy-form {
    display: flex;
    gap: 0.5rem;
}

#url-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: box-shadow 0.2s;
}

#url-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1.5rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-panel, .error-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #e9f5ff;
    border: 1px solid #b3d7ff;
}

.error-panel {
    background-color: #ffe9e9;
    border-color: #ffb3b3;
    color: #d8000c;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#preview-btn, #download-btn {
    background-color: #28a745;
}

#preview-btn:hover, #download-btn:hover {
    background-color: #1e7e34;
}

.endpoint {
    display: block;
    background-color: #eef2f5;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre {
    background-color: #eef2f5;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

.download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background-color: #17a2b8;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #117a8b;
}
