/* GitHub Gist Embedder specific styles */

.gist-embedder-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa; /* Light background for input */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
    background-color: #fff;
}

#embedCodeOutput {
    resize: vertical; /* Allow vertical resizing */
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', monospace; /* Monospaced font for code */
    font-size: 0.9rem;
    background-color: #e9ecef; /* Slightly darker background for output */
    color: #495057;
    cursor: text; /* Indicate it's selectable */
    min-height: 120px; /* Minimum height */
}

.gist-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between buttons */
    margin-bottom: 25px;
}

.form-text {
    font-size: 0.875em;
    color: #6c757d;
}

/* Usage Guide Styles (reusing existing common styles where possible) */
.usage-guide ol {
    list-style: decimal inside;
    padding-left: 0;
}

.usage-guide li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.usage-guide li strong {
    color: #007bff; /* Primary color for strong text in list */
}

.usage-guide p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.usage-guide pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gist-embedder-container {
        padding: 20px;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .gist-controls .btn {
        width: 100%; /* Stack buttons on small screens */
        margin-left: 0 !important; /* Override ms-2 */
    }

    .gist-controls .btn + .btn {
        margin-top: 10px; /* Add space between stacked buttons */
    }

    .usage-guide li {
        font-size: 0.95rem;
    }
}