/* Backdrop for overlay */
.vowel-genie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 999;
}

/* Panel styling */
.vowel-genie-panel {
    position: fixed;
    top: 0;
    right: -450px;
    font-family: "Open Sans", sans-serif;
    width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 999;
}

.vowel-genie-panel.open {
    right: 0;
}

.vowel-genie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    /* border-bottom: 1px solid #ddd; */
}

.vowel-genie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.vowel-genie-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    border-bottom: 1px solid #ddd;
}


.vowel-genie-tabs li {
    margin-right: 0.5rem;
}

/* .vowel-genie-tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    background: none;
    border: none;
} */
.vowel-genie-tab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-size: 14px;
    color: #2563eb;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    position: relative;
    top: 1px;
}

.vowel-genie-tab:hover {
    background: #eef2ff;
}

/* .vowel-genie-tab.active {
    border-bottom: 2px solid #2563eb;
    font-weight: bold;
} */
.vowel-genie-tab.active {
    background: #fff;
    color: #000;
    font-weight: 500;
    border: 1px solid #ddd;
    border-bottom: 1px solid #fff;
}

.vowel-genie-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* .vowel-genie-pane {
    display: none;
} */
.vowel-genie-pane {
    display: none;
    height: 100%;
}

/* .vowel-genie-pane.active {
    display: block;
} */
.vowel-genie-pane.active {
    display: flex;
    flex-direction: column;
}

.vowel-genie-footer {
    display: flex;
    padding: 1rem 1rem 3rem 1rem;
    border-top: 1px solid #ddd;
    gap: 5px;
}

.vowel-genie-footer input {
    height: 30px;
    width: 100%;
    padding: 0 5px;
}

.vowel-genie-footer button {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* margin-bottom: 10px; */
}

/* Chat messages */
/* .vowel-genie-msg {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    max-width: 80%;
    word-break: break-word;
    white-space: pre-wrap;
} */
.vowel-genie-msg {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    white-space: pre-line;
}

/* .vowel-genie-msg.user {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
} */
.vowel-genie-msg.user {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* .vowel-genie-msg.bot {
    align-self: flex-start;
    background: #f0f0f0;
    color: #000;
} */
.vowel-genie-msg.bot {
    align-self: flex-start;
    background: #f1f5f9;
    color: #111;
    border-bottom-left-radius: 4px;
}

.vowel-genie-msg.loading {
    font-style: italic;
    color: #666;
}

/* Video wrapper for Learn tab */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
}

and this en of css

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #1A2B49;
}

.logout-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    font-size: 14px;
    color: #64748b;
}

.logout-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #dc2626;
}

#vowelGenieMessages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 2px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Optional: errors */
.error {
    color: red;
    font-weight: bold;
}

/* MOBILE: open from bottom */
@media (max-width: 600px) {

    .vowel-genie-panel {
        width: 100%;
        height: 60vh;
        top: auto;
        bottom: -100%;
        right: 0;
        border-radius: 18px 18px 0 0;
        transition: bottom .35s cubic-bezier(.22, .61, .36, 1);
    }

    .vowel-genie-panel.open {
        bottom: 0;
    }

    /* backdrop slightly darker for mobile */
    .vowel-genie-backdrop {
        background: rgba(0, 0, 0, .45);
    }

    /* add drag handle */
    .vowel-genie-header {
        position: relative;
        padding-top: 20px;
    }

    .vowel-genie-header::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 10px;
    }

}