/* Usolver Embed Styles - Clean and Integrated Design */

.usolver-overlay {
    position: fixed;
    z-index: 1000001;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    background: #e7f1fe;
    color: black;
    font-size: 18px;
    border-left: 5px solid #3b95ff;
    min-height: 62px;

    .usolver-header-left {
        display: flex;
        align-items: center;
        padding-left: 5px;
    }

    .usolver-header-right {
        padding: 0.25rem 0.5rem;
    }
}

.usolver-header-tabs {
    text-align: center;
    background-color: #f6f7f9;
    border-left: 0px solid #3b95ff;
    border-bottom: 1px solid #98c5ff;

    &.header-tabs-max {
        position: fixed;
        z-index: 1000002;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: transparent;
        border: none;
    }
}

.clear-tabs {
    background-color: transparent;
    border-bottom: none;
}

.usolver-container {
    margin: 0 0 40px 0;
    border-bottom: 3px solid #c8d9f0;
    background: #ffffff;

    /* Activity Highlight Styles */
    &.activity-highlight {
        outline: 1px solid #ffffff !important;
        outline-offset: 1px !important;
        border-radius: 2px !important;
        box-shadow: 0 0 5px 2px #5db1f3;
    }

    .usolver-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px;
        background: #e7f1fe;
        color: black;
        font-size: 18px;
        border-left: 5px solid #3b95ff;
        min-height: 62px;
    }

    .usolver-header-left {
        display: flex;
        align-items: center;
        padding-left: 5px;
    }

    .usolver-header-right {
        padding: 0.25rem 0.5rem;
    }

    .usolver-content {
        padding: 1rem;
        background: #ffffff;
    }

    .usolver-content iframe {
        border: none;
        width: 100%;
    }
}

.quiz-container {
    margin-top: 10px;
}

/* Interactive Activities Dropdown Button Styles */
.content-header .book-controls {
    .interactive-activities-btn {
        border: 1px solid #b9d0e7;
        background-color: #f5faff;

        &:not(.dropdown-toggle):after {
            display: none !important;
        }
    }
    .activity-count {
        position: relative;
        top: -4px;
    }
}
.dark-theme .content-header .book-controls {
    .interactive-activities-btn {
        border: 1px solid #111;
        background-color:rgb(78, 78, 78);
    }
}

/* Activities Dropdown Menu Styles */
#activitiesDropdownMenu {
    min-width: 120px;
    max-width: 400px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px 0;
    margin-top: 2px;
    left: 50% !important;
    transform: translateX(-50%) !important;

    & li a {
        padding: 6px 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #333;
        transition: all 0.15s ease;
        font-size: 13px;
        line-height: 1.3;

        &:hover {
            background-color: #f5f5f5;
            color: #333;

            .glyphicon {
                color: #333;
            }
        }

        .glyphicon {
            color: #666;
            transition: color 0.15s ease;
            font-size: 11px;
        }

        &.selected {
            background-color: #e6f3ff;
        }
    }
}

/* Dark Theme Support for Interactive Activities Dropdown */
.dark-theme {
    #activitiesDropdownMenu {
        background-color: #2d2d2d;
        border-color: #404040;

        & li a {
            color: #e9ecef;

            &:hover {
                background-color: #404040;
                color: #e9ecef;

                .glyphicon {
                    color: #e9ecef;
                }
            }

            .glyphicon {
                color: #adb5bd;
            }

            &.selected {
                background-color: #1a4d66;
            }
        }
    }
}
