/* QubicChat Dual Menu - Frontend Styles v1.2.3 */

.qubichat-dual-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.qubichat-menu-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
}

.qubichat-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #0f172a, #0b1220);
    border: 1px solid rgba(51, 204, 255, 0.2);
    border-radius: 8px;
    color: #667;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.qubichat-tab svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.qubichat-tab:hover {
    border-color: rgba(51, 204, 255, 0.4);
    color: #33ccff;
}

.qubichat-tab:hover svg {
    opacity: 0.9;
}

.qubichat-tab.active {
    border-color: rgba(51, 204, 255, 0.5);
    color: #33ccff;
    background: linear-gradient(180deg, #0f172a, #101829);
}

.qubichat-tab.active svg {
    opacity: 1;
}

.qubichat-menu-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qubichat-menu-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.qubichat-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    background: linear-gradient(180deg, #0f172a, #0b1220);
    border: 1px solid rgba(51, 204, 255, 0.25);
    color: #e6f7ff;
    box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.qubichat-menu-item:hover {
    border-color: rgba(51, 204, 255, 0.5);
    transform: translateX(2px);
}

.qubichat-menu-item.highlighted {
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.qubichat-menu-item.highlighted:hover {
    border-color: rgba(168, 85, 247, 0.6);
}

.qubichat-menu-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.qubichat-menu-item svg {
    flex: 0 0 auto;
    opacity: 0.95;
}

.qubichat-menu-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    color: #e6f7ff;
}

.qubichat-chevron {
    flex: 0 0 auto;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.qubichat-menu-item:hover .qubichat-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Crypto Popup Modal */
.qubichat-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.qubichat-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.qubichat-popup-modal {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    border: 1px solid rgba(51, 204, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(51, 204, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.2s ease;
    position: relative;
}

.qubichat-popup-overlay.active .qubichat-popup-modal {
    transform: scale(1);
}

.qubichat-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qubichat-popup-close:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
}

.qubichat-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(51, 204, 255, 0.2);
}

.qubichat-popup-header span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #33ccff;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.qubichat-popup-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.qubichat-popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: rgba(51, 204, 255, 0.05);
    border: 1px solid rgba(51, 204, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qubichat-popup-item:hover {
    background: rgba(51, 204, 255, 0.12);
    border-color: rgba(51, 204, 255, 0.4);
    transform: translateY(-2px);
}

.qubichat-popup-item.highlighted {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
}

.qubichat-popup-item.highlighted:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.15);
}

.qubichat-popup-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qubichat-popup-item-icon svg {
    width: 24px;
    height: 24px;
}

.qubichat-popup-item-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e6f7ff;
    text-align: center;
    line-height: 1.2;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Scrollbar styling for popup */
.qubichat-popup-modal::-webkit-scrollbar {
    width: 6px;
}

.qubichat-popup-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.qubichat-popup-modal::-webkit-scrollbar-thumb {
    background: rgba(51, 204, 255, 0.3);
    border-radius: 3px;
}

.qubichat-popup-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 204, 255, 0.5);
}
