/* ResearchLab Setup Page Styles */

.research-lab-setup {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 4px;
}

.research-lab-setup h1 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 2rem;
}

.research-lab-setup h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.5rem;
}

/* Form Fields */
.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.field input[type="text"],
.field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.field input[type="text"]:focus,
.field textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.field textarea {
    resize: vertical;
    min-height: 80px;
}

.required {
    color: #c00;
    margin-left: 0.25rem;
}

.field-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0.5rem 0;
}

.field-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.field-help a {
    color: #007bff;
    text-decoration: none;
}

.field-help a:hover {
    text-decoration: underline;
}

/* Expandable Section */
.expandable-section {
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background: #f9f9f9;
}

.expand-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    padding: 0;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expand-toggle:hover {
    color: #0056b3;
}

.expand-icon {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 0.8rem;
}

.expandable-content {
    margin-top: 1rem;
}

/* Additional Questions */
.additional-question {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.additional-question label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.additional-question textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.remove-question {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
}

.remove-question:hover {
    background: #c82333;
}

/* Buttons */
.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.primary-button {
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

.primary-button:hover {
    background: #0056b3;
}

.primary-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.secondary-button {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

.secondary-button:hover {
    background: #5a6268;
}

/* Resume Section */
.resume-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.resume-section h2 {
    font-size: 1.25rem;
    color: #555;
}

.resume-section p {
    color: #666;
    margin-bottom: 0.75rem;
}

.resume-section code {
    display: block;
    padding: 0.75rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: #333;
}

/* API Key Field */
.api-key-field {
    background: #fffbf0;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 4px;
}

.api-key-field input[type="text"] {
    font-family: 'Courier New', Courier, monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .research-lab-setup {
        margin: 1rem;
        padding: 1rem;
    }

    .research-lab-setup h1 {
        font-size: 1.5rem;
    }

    .field input[type="text"],
    .field textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .additional-question {
        padding: 0.75rem;
    }

    .remove-question {
        position: static;
        display: block;
        margin-top: 0.5rem;
        width: 100%;
    }
}
