:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --accent-color: #03dac6;
    --bot-header: #42a5f5;
    --human-header: #9ccc65;
    --border-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--primary-text-color);
    margin: 0;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 { text-align: center; }
h1 { color: var(--accent-color); font-size: 2.5em; }
h2 { margin-top: 0; }
h3 { margin-bottom: 5px; color: #bbbbbb;}

/* MODIFIED: Added .intro-section to this rule */
.intro-section, .api-info-section, .input-section {
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* NEW: Added styling for lists in the intro */
.intro-section ol, .intro-section ul {
    padding-left: 25px;
    line-height: 1.6;
}

.intro-section li {
    margin-bottom: 8px;
}


label {
    display: block;
    margin-bottom: 10px;
    margin-top: 20px; /* Added margin for spacing */
    font-weight: bold;
}

input[type="password"], textarea {
    width: 100%;
    background-color: #2c2c2c;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-text-color);
    padding: 12px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 15px;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

button:disabled {
    background-color: #444;
    cursor: not-allowed;
    color: #888;
}

button:not(:disabled):hover { background-color: #018786; }

.loader {
    margin: 30px auto;
    border: 5px solid #333;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.outputs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.output-box {
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.output-box h2 {
    margin: 0;
    padding: 15px;
    color: #000;
    font-size: 1.2em;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.bot-header { background-color: var(--bot-header); }
.human-header { background-color: var(--human-header); }

.response-content {
    padding: 20px;
    white-space: pre-wrap;
    line-height: 1.7;
    flex-grow: 1;
}

/* --- STYLES FOR THE VIDEO SECTION --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 10px 0;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.api-key-link {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-top: 10px;
    text-align: center;
}

.api-key-link a {
    color: #42a5f5;
    text-decoration: none;
}

.api-key-link a:hover {
    text-decoration: underline;
}

.hidden { display: none; }

@media (max-width: 800px) {
    .outputs-container { grid-template-columns: 1fr; }
}