/* Mobile Menu Drawer Styles - Premium SaaS Redesign */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100005 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    background: #ffffff;
    z-index: 100006 !important;
    transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu-drawer.active {
    top: 0;
}

.mobile-menu-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-header .logo {
    font-size: 26px;
    /* Matches the main header logo size on mobile */
}

.close-menu-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: transparent !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    z-index: 10 !important;
}

.close-menu-btn:hover,
.close-menu-btn:focus,
.close-menu-btn:active {
    background: transparent !important;
    color: #0f172a !important;
    transform: none !important;
    box-shadow: none !important;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 56px 0 16px 0 !important;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
}

.mobile-nav-section {
    padding: 10px 24px;
}

.mobile-nav-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    margin-top: 20px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.mobile-menu-item:hover {
    color: #70c631;
    padding-left: 4px;
}

.mobile-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.mobile-auth-footer {
    padding: 24px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-mobile-full,
.btn-mobile-signup,
.btn-mobile-login,
.mobile-auth-footer a,
.mobile-auth-footer button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    -webkit-appearance: none !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 15.5px;
    transition: all 0.3s;
}

.btn-mobile-login {
    background: transparent;
    border: 1px solid #1e293b !important;
    color: #1e293b;
}

.btn-mobile-signup {
    background: linear-gradient(135deg, #70c631 0%, #82d446 100%) !important;
    color: #fff;
}

/* Accordion Logic for submenus if needed */
.mobile-submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
}

.mobile-submenu-trigger svg {
    transition: transform 0.3s;
}

.mobile-submenu-trigger.active svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    padding-left: 10px;
    margin-bottom: 10px;
}

.mobile-submenu.active {
    display: block;
}

/* Mobile styling for cloned tools grid */
.mobile-menu-content .all-tools-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 24px !important;
}

.mobile-menu-content .dropdown-column {
    display: flex !important;
    flex-direction: column !important;
    border-bottom: none !important;
    padding: 0 24px 0 24px !important;
    gap: 0 !important;
}

.mobile-menu-content .dropdown-column:last-child {
    border-bottom: none !important;
}

.mobile-menu-content .column-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 10px 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    user-select: none !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.mobile-menu-content .column-label:hover {
    background-color: #eeeeee !important;
    color: #000000 !important;
}

.mobile-menu-content .column-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transform: translateY(-8px) !important;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.3s ease !important;
}

.mobile-menu-content .dropdown-column.expanded .column-items {
    max-height: 1400px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding-bottom: 8px !important;
}

.mobile-menu-content .accordion-chevron {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.5px !important;
    color: #334155 !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease !important;
    flex-shrink: 0 !important;
}

.mobile-menu-content .dropdown-column.expanded .accordion-chevron {
    transform: rotate(180deg) !important;
    color: #000000 !important;
}

.mobile-menu-content .dropdown-item,
.mobile-menu-content .dropdown-item.compact {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
}

.mobile-menu-content .dropdown-item:hover,
.mobile-menu-content .dropdown-item.compact:hover,
.mobile-menu-content .mobile-menu-item:hover {
    background-color: #eeeeee !important;
    border-color: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
}

.mobile-menu-content .dropdown-item:hover .item-title,
.mobile-menu-content .dropdown-item.compact:hover .item-title,
.mobile-menu-content .mobile-menu-item:hover {
    color: #000000 !important;
}

.mobile-menu-content .dropdown-item.active,
.mobile-menu-content .dropdown-item.compact.active,
.mobile-menu-content .mobile-menu-item.active {
    background-color: #eeeeee !important;
    border-color: transparent !important;
    color: #000000 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.mobile-menu-content .item-icon {
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mobile-menu-content .item-icon svg {
    width: 36px !important;
    height: 36px !important;
}

/* Category subheadings inside PDF Converter dropdown */
.mobile-menu-content .submenu-category-title {
    display: none !important;
}

/* Single links without chevron inside mobile menu content */
.mobile-menu-content .mobile-single-link {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 10px 24px !important;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.mobile-menu-content .mobile-single-link:hover {
    background-color: #eeeeee !important;
    color: #000000 !important;
    border-radius: 6px !important;
}

.mobile-menu-content .mobile-single-link:last-child {
    border-bottom: none !important;
}