
/* Premium Mobile App Sidebar - Right Aligned & Fixed */
.mobile-app-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
}

/* The visible tab docked to the right */
.sidebar-tab {
    background: #ffffff;
    padding: 35px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 20px 0 0 20px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    border-right: none;
}

.sidebar-tab i {
    font-size: 22px;
    color: #c19e7e; /* Elegant gold/beige from screenshot */
    transition: transform 0.3s ease;
}

.sidebar-tab span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: 700;
    color: #332859; /* Theme navy */
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Hover effect for the tab */
.mobile-app-sidebar:hover .sidebar-tab {
    background: #fcfcfc;
    padding-right: 15px;
}

.mobile-app-sidebar:hover .sidebar-tab i {
    transform: scale(1.2);
    color: #ec4f4f; /* Pop of primary red on hover */
}

/* The content bubble that slides out to the left */
.sidebar-content {
    position: absolute;
    right: 60px; /* Hidden behind/next to tab */
    width: 280px;
    background: #fff;
    box-shadow: -15px 15px 40px rgba(0,0,0,0.12);
    border-radius: 20px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.mobile-app-sidebar:hover .sidebar-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Header inside the bubble */
.sidebar-content p {
    font-size: 15px;
    color: #332859;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* App buttons styling */
.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #332859;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.app-btn:hover {
    background: #c19e7e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(193, 158, 126, 0.3);
}

.app-btn i {
    font-size: 20px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .mobile-app-sidebar {
        display: none; /* Hide on small mobile to avoid clutter */
    }
}
