body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    margin-top: 0;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

#download-video {
    background-color: #c4302b;
    color: white;
}

#download-video:hover {
    background-color: #a32722;
}

#download-audio {
    background-color: #282828;
    color: white;
}

#download-audio:hover {
    background-color: #1f1f1f;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    text-align: left;
}

.processing-message {
    display: none;
    /* Hidden by default */
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    text-align: center;
}

.processing-message p {
    margin: 0;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(133, 100, 4, 0.3);
    border-radius: 50%;
    border-top-color: #856404;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 10px;
}

#processing {
    display: none;
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.command-output {
    width: 100%;
    height: 100px;
    font-family: monospace;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}