.generation-settings .icon-settings {
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.generation-settings .dropdown-menu {
    border-radius: 12px;
}

/* Allow the settings dropup to escape the input bar */
.rbt-static-bar .new-chat-form.border-gradient {
    overflow: visible;              /* override global .border-gradient */
}

/* Keep the gradient border tight so it doesn't flood the static bar */
.rbt-static-bar .new-chat-form.border-gradient::before {
    width: 100%;                    /* instead of 200% */
    height: 100%;                   /* instead of 200% */
}

/* Optional: you can keep this, but it makes the override explicit */
.rbt-static-bar .new-chat-form.border-gradient::after {
    inset: 2px;                     /* same as global, just more specific */
}

/* Make sure the settings menu is above everything visually */
.rbt-static-bar .generation-settings .dropdown-menu {
    z-index: 20;
}

/* --------------------------------------------- */
/* VIDEO GENERATOR LAYOUT                        */
/* --------------------------------------------- */

.video-generator-panel {
    background: var(--color-primary-dark, #0b0f19);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

/* Results area */
.video-generator-results {
    margin-top: 10px;
}

.video-result-list {
    display: flex;
    flex-direction: column;
}

/* Result card */
.video-result-card {
    background: var(--color-primary-dark, #0b0f19);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: 0.2s ease;
}

.video-result-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------- */
/* STYLE PILLS                                   */
/* --------------------------------------------- */

.style-picker .style-pill {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 6px;
    transition: 0.2s;
}

.style-picker .style-pill.selected,
.style-picker .style-pill:hover {
    background: var(--color-gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* --------------------------------------------- */
/* PROMPT INPUT AREA                              */
/* --------------------------------------------- */

.video-generator-input {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.video-generator-input textarea {
    width: 100%;
    background: transparent;
    border: none;
    resize: vertical;
    min-height: 90px;
    padding: 14px 48px 14px 48px;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
}

.video-generator-input .left-icons,
.video-generator-input .right-icons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.video-generator-input .left-icons {
    left: 14px;
}

.video-generator-input .right-icons {
    right: 14px;
    display: flex;
    gap: 10px;
}

.video-generator-input .form-icon i {
    font-size: 17px;
    opacity: 0.8;
}

/* Fix tooltip icon alignment */
.video-generator-input .icon-plus input[type="file"] {
    display: none;
}

/* Send button hover */
.video-generator-input .icon-send:hover i {
    opacity: 1;
}

/* --------------------------------------------- */
/* SETTINGS CARD                                  */
/* --------------------------------------------- */

.generation-settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.generation-settings-card select {
    background: #00000033;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.generation-settings-card select:focus {
    border-color: var(--color-accent, #6c5ce7);
    outline: none;
}

/* --------------------------------------------- */
/* RESULT VIDEO BLOCK                             */
/* --------------------------------------------- */

.js-video-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.js-video-container img,
.js-video-container video {
    border-radius: 10px;
}

/* Download button on video */
.js-download-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.js-video-container:hover .js-download-btn {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------- */
/* META / HEADERS                                 */
/* --------------------------------------------- */

.video-generator-panel h3,
.video-generator-results h5 {
    color: #fff;
}

.image-caption .caption-title {
    font-size: 14px;
    opacity: 0.9;
}

/* --------------------------------------------- */
/* MINI FIXES / POLISH                            */
/* --------------------------------------------- */

/* Fade-in effect for each result */
.video-result-card {
    animation: fadeInUp 0.25s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Improve spacing inside cards */
.video-result-card .inner {
    padding: 4px 2px;
}

.generate-section img {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

/* Smaller reaction buttons */
.reaction-section .btn-border {
    padding: 6px 10px;
    font-size: 13px;
}

/* --------------------------------------------- */
/* MOBILE RESPONSIVE                              */
/* --------------------------------------------- */

@media (max-width: 768px) {
    .video-generator-input textarea {
        min-height: 70px;
        padding: 12px 40px;
    }

    .video-generator-panel {
        padding: 20px !important;
    }

    .generation-settings-card {
        margin-top: 20px;
    }
}

/* Generic hidden helper for panel states */
.is-hidden {
    display: none !important;
}

/* Shell just stacks the three states (only one visible at a time) */
.video-generator-shell {
    display: flex;
    flex-direction: column;
}

/* Loading panel look */
.video-loading-panel {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Result panel reuses card aesthetics */
.video-result-panel {
    background: #0b0f19;
}

/* --------------------------------------------- */
/* HISTORY PANEL                                  */
/* --------------------------------------------- */

.video-history-panel {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.video-history-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.video-history-item {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    max-width: 140px;
}

.video-history-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;           /* square */
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.video-history-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-history-item:hover .video-history-thumb {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.video-history-meta span {
    display: block;
}

.video-history-meta .text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile tweak */
@media (max-width: 768px) {
    .video-history-item {
        max-width: 45%;
    }
}



