/* Support Bubble Styles */

/* The floating action button */
.support-bubble-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    /* Adjust to match main theme primary color */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1050;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.support-bubble-btn:hover {
    transform: scale(1.05);
    background-color: #0b5ed7;
}

.support-bubble-btn i {
    font-size: 32px;
}

/* The popover container */
.support-bubble-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpFade 0.3s ease;
}

/* Header */
.support-bubble-header {
    background-color: #0d6efd;
    color: white;
    padding: 24px 20px 40px 20px;
    /* Extra bottom padding for overlap effect */
    flex-shrink: 0;
}

.support-bubble-header .logo {
    font-weight: 600;
    font-size: 16px;
    opacity: 0.9;
}

.support-bubble-header h3 {
    margin-bottom: 5px;
    font-size: 24px;
}

.support-bubble-header h4 {
    font-size: 20px;
    font-weight: normal;
    opacity: 0.9;
}

/* Body Content */
.support-bubble-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    margin-top: -20px;
    /* Pulls content up over the header */
    scrollbar-width: thin;
}

.support-bubble-body .tab-pane {
    animation: fadeIn 0.3s ease;
}

/* Cards / List Groups inside Body */
.support-bubble-body .list-group {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.support-bubble-body .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f1f1;
    padding: 16px 20px;
}

.support-bubble-body .list-group-item:last-child {
    border-bottom: none;
}

.support-bubble-body .card {
    border-radius: 12px;
}

/* Footer Nav */
.support-bubble-footer {
    flex-shrink: 0;
    border-top: 1px solid #e9ecef;
}

.support-bubble-footer .nav-item {
    flex: 1;
}

.support-bubble-footer .nav-link {
    padding: 12px 0;
    text-align: center;
    color: #6c757d;
    opacity: 0.7;
    border-radius: 0;
}

.support-bubble-footer .nav-link:hover,
.support-bubble-footer .nav-link.active {
    color: #0d6efd;
    opacity: 1;
    font-weight: 500;
    background: transparent;
}

.support-bubble-footer .nav-link i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Utilities & Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .support-bubble-container {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .support-bubble-btn {
        bottom: 20px;
        right: 20px;
    }
}