/* Side Menu Styles */
.gmsm-side-menu {
    position: fixed;
    right: -250px; /* Hidden off-screen by default */
    top: 8em;
    height: 100vh;
    width: 250px;
    background-color: transparent;
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.gmsm-side-menu.expanded {
    right: 0; /* Slide in when expanded */
    border-radius: 20px;
}

.gmsm-toggle-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 16px;
    width: 72px;
    text-align: right;
    display: block;
    position: fixed;
    right: 0;
    top: 3.5em;;
    z-index: 10000;
    background-color: #fff;
    border-radius: 20px 0 0 20px;
}

.gmsm-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 0px;
    
}
.gmsm-menu-items li{
    background-color: #fff;
    border-radius: 20px 0 0 20px;
}
.gmsm-menu-items li a {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    padding: 16px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, background 0.2s;
    border-radius: 15px;
}

.gmsm-menu-items li a:hover,
.gmsm-menu-items li a:active {
    transform: scale(0.95);
    background-color: #f1f3f4;
}

.gmsm-icon {
    font-size: 24px;
    min-width: 40px;
    text-align: center;
}

.gmsm-title {
    margin-right: 16px;
    white-space: nowrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gmsm-side-menu {
        width: 250px;
        right: -250px;
    }
    .gmsm-side-menu.expanded {
        right: 0;
    }
}
#gmsm-user-dropdown img{
    border-radius:50px;
}
/* User Menu Styles */
.gmsm-user-menu {
    position: fixed;
    right: 29px;
    top: 0em;
    z-index: 9999;
}

.gmsm-avatar {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmsm-avatar img {
    border-radius: 50%;
}

.gmsm-guest-avatar {
    background-color: #f1f3f4;
    font-size: 20px;
    color: #333;
}

.gmsm-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 16px 20px;
    min-width: 250px;
    text-align: left;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gmsm-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.gmsm-dropdown p {
    margin: 0 0 16px;
    font-weight: bold;
}

.gmsm-dropdown a {
    display: block;
    padding: 8px 8px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    margin-bottom: 8px;
    border-radius: 10px;
}

.gmsm-dropdown .gmsm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px;
    background-color: #fff;
    margin-bottom: 8px;
    border-radius: 10px;
}

.gmsm-initial {
    width: 32px;
    height: 32px;
    background-color: #d23f31;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.gmsm-brand {
    color: #777;
    font-size: 0.9em;
}

.gmsm-action-btn {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 8px;
}

.gmsm-action-btn:nth-child(2) {
    background-color: #d93025;
    margin-left: 4px;
}

.gmsm-footer {
    margin-top: 16px;
    font-size: 0.7em;
    color: #777;
    background-color: #fff;
    padding: 8px;
    border-radius: 10px;
    display: inline-flex;

}

.gmsm-footer a {
    color: #777;
}

.gmsm-dropdown a:hover {
    color: #1a73e8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Integrated Form Styles */
.gmsm-dropdown label {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.gmsm-dropdown input[type="text"],
.gmsm-dropdown input[type="email"],
.gmsm-dropdown input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.gmsm-dropdown input[type="submit"] {
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gmsm-dropdown input[type="submit"]:hover {
    background: #0066cc;
}

.gmsm-switch-to-register,
.gmsm-switch-to-login {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.gmsm-switch-to-register:hover,
.gmsm-switch-to-login:hover {
    text-decoration: underline;
}

/* Floating-menu style */

/* Main container styling */
#floating-menu {
    position: fixed;
    bottom: 0.5em;
    left: 0.5em;
    right: 1em;
    background-color: white;
    display: flex;
    justify-content: center;
    padding: 7px 0;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-radius: 13px;
    pointer-events: auto;
}

/* Ensure the menu items stretch to fit full width */
#floating-menu ul {
    width: 95%;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Style for square menu items, including "Back to Top" */
#floating-menu ul li {
    background-color: transparent;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

/* Hover effect for menu items */
#floating-menu ul li:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
}

/* Icon styling */
#floating-menu a {
    color: var(--color-two);
    font-size: 17px;
    text-decoration: none;
    display: block;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
}

/* Hover color for icons */
#floating-menu a:hover {
    color: var(--color-three);
}

/* Active state for menu items */
#floating-menu ul li.active {
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    #floating-menu {
        width: 95%;
    }

    #floating-menu ul {
        width: 95%;
        justify-content: space-between;
    }

    #floating-menu ul li {
        flex-grow: 1;
        max-width: 38px;
    }
}

/* Font Awesome Icons */
.menu-item i,
.random-post-link i {
    font-size: 16px;
    vertical-align: middle;
}

/* Misc */
#info-content {
    margin-right: 80px;
}

#back-to-top {
    border-radius: 0;
}



/* Clean and modern Apple-inspired menu styling */
.wp-block-navigation__container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}

/* Menu items */
.wp-block-navigation-item {
    position: relative;
}

/* Menu links */
.wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1d1d1f;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect */




/* Rotate icon when open */
.wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Font Awesome icons */
.wp-block-navigation__container .wp-block-navigation-item__content i {
    margin-right: 6px;
    font-size: 14px;
    color: #1d1d1f;
}