/* --- USER BAR (Dark Theme) --- */
.custom-userbar {
    position: fixed;
    top: 15px;
    right: 25px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;

    /* 🩶 Dark glass effect */
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;

    padding: 10px 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
}

/* Subtle lift on hover */
.custom-userbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

/* --- BUTTONS --- */
.logout-button,
.bookmark-button,
.home-button {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #f75e25, #d94a1d);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 0 8px rgba(247, 94, 37, 0.3);
}

/* --- BUTTON HOVER --- */
.logout-button:hover,
.bookmark-button:hover,
.home-button:hover {
    background: linear-gradient(135deg, #ff7b47, #f75e25);
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(247, 94, 37, 0.8);
}

/* --- TOOLTIP --- */
.logout-button[title]:hover::after,
.bookmark-button[title]:hover::after,
.home-button[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 60px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0.95;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* --- RESPONSIVE --- */
@media (max-width: 700px) {
    .custom-userbar {
        top: auto;
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        gap: 10px;
        background: rgba(15, 15, 15, 0.85);
    }

    .logout-button,
    .bookmark-button,
    .home-button {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .logout-button[title]:hover::after,
    .bookmark-button[title]:hover::after,
    .home-button[title]:hover::after {
        top: -35px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: rgba(25, 25, 25, 0.9);
}

/* Prevent glass blurs from being too heavy on phones */
@media (max-width: 600px) {
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
