
/* Custom Jewelio theme overrides & components */

/* ========= Floating Menu Selector ========= */
.btn-floating-menu {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-floating-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-floating-menu:active {
    transform: scale(0.95);
}

.btn-floating-menu i {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .floating-menu-selector {
        bottom: 80px !important;
    }
}

/* ========= Navigation Mega Menu Modal ========= */
#menuSelectorModal .modal-dialog {
    max-width: 960px;
}

#menuSelectorModal .modal-content {
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    border: none;
}

#menuSelectorModal .modal-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid #e2e8f0;
}

#menuSelectorModal .modal-title {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
}

#menu-selector-content {
    background-color: #f8fafc;
}

/* Mega menu grid layout inside modal (legacy simple grid) */
#menu-selector-nav {
    padding: 0.75rem 1rem 1rem 1rem;
}

#menu-selector-nav .nav-item {
    margin-bottom: 0.15rem;
}

#menu-selector-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
    will-change: background-color, color, transform;
    font-size: 0.92rem;
}

#menu-selector-nav .nav-link:hover {
    background-color: rgba(79, 70, 229, 0.06);
    color: #4338ca;
    transform: translateX(2px);
}

#menu-selector-nav .nav-link.active,
#menu-selector-nav .nav-link.menu-expanded {
    background-color: rgba(79, 70, 229, 0.12);
    color: #3730a3;
    font-weight: 600;
}

#menu-selector-nav .nav-item.has-dropdown .nav-link.menu-expanded::after {
    content: '▾';
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.8;
}

#menu-selector-nav .nav-item.has-dropdown .nav-link:not(.menu-expanded)::after {
    content: '▸';
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.55;
}

/* Click-only dropdown */
#menu-selector-nav .nav-item:hover .menu-dropdown {
    display: none !important;
}

#menu-selector-nav .menu-dropdown {
    display: none !important;
    overflow: visible;
    margin-top: 0.3rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(148, 163, 184, 0.35);
}

#menu-selector-nav .menu-dropdown.show {
    display: block !important;
}

/* Prevent blinking */
#menu-selector-nav .menu-dropdown,
#menu-selector-nav .nav-link {
    transition: none !important;
    animation: none !important;
}

/* Nested dropdown styling */
#menu-selector-nav .menu-dropdown .menu-dropdown {
    padding-left: 1.25rem;
    margin-top: 0.2rem;
}

#menu-selector-nav .nav-link.has-nested-dropdown::after {
    content: '▶';
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.5;
}

#menu-selector-nav .nav-link.has-nested-dropdown.menu-expanded::after {
    content: '▼';
    opacity: 0.7;
}

@media (max-width: 768px) {
    #menuSelectorModal .modal-dialog {
        margin: 0.5rem;
    }

    #menu-selector-nav .nav-link {
        padding: 0.875rem 1rem;
    }
}

#menu-selector-nav .menu-dropdown .nav-link {
    padding-left: 2rem;
    font-size: 0.9rem;
}

#menu-selector-nav .menu-dropdown .menu-dropdown .nav-link {
    padding-left: 3rem;
    font-size: 0.85rem;
}

#menu-selector-nav svg {
    width: 20px;
    height: 20px;
}

/* ========= Mega Menu – Left / Right Panes ========= */
.mega-menu-left {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    height: 100%;
}

.mega-menu-left-list {
    padding: 0.75rem 0.5rem;
}

.mega-menu-left-item {
    border: 0;
    border-radius: 0.45rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mega-menu-left-item i {
    font-size: 0.9rem;
}

.mega-menu-left-item .text-start {
    font-weight: 500;
}

.mega-menu-left-item:hover {
    background-color: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.mega-menu-left-item.active {
    background-color: #1d4ed8;
    color: #ffffff;
}

.mega-menu-left-item.active i {
    color: #bfdbfe;
}

.mega-menu-right {
    background: #ffffff;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.mega-menu-header {
    background: #ffffff;
}

.mega-menu-header h5 {
    font-size: 1rem;
}

.mega-menu-grid {
    background-color: #ffffff;
}

.mega-menu-section {
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
    border-radius: 0.6rem;
    transition: background-color 0.12s ease, transform 0.08s ease;
}

.mega-menu-section:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.mega-menu-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.mega-menu-section-title::before {
    content: "\f07b"; /* fa-folder icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: #4f46e5;
}

.mega-menu-sublist {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mega-menu-sublist li + li {
    margin-top: 0.2rem;
}

.mega-menu-subitem {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: #6b7280;
    text-decoration: none;
}

.mega-menu-subitem::before {
    content: "\f111"; /* fa-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    font-size: 0.3rem;
    color: #9ca3af;
}

.mega-menu-subitem:hover {
    color: #2563eb;
}

/* ========= Header Layout & Topbar ========= */
.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

.header-menu-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: visible;
}

.header-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    min-width: auto;
}

.header-item .btn {
    margin: 0;
    padding: 0.5rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 180ms cubic-bezier(.2,.9,.2,1), box-shadow 180ms cubic-bezier(.2,.9,.2,1);
    will-change: transform;
    transform-origin: center center;
}

.header-item.dropdown {
    position: relative;
}

.header-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    margin-top: 0.5rem;
    min-width: 200px;
    max-width: calc(100vw - 2rem);
    transition: all 0.15s ease;
}

.header-item.dropdown:last-child .dropdown-menu,
.header-item.dropdown:nth-last-child(2) .dropdown-menu,
.header-item.dropdown:nth-last-child(3) .dropdown-menu,
.header-item.dropdown:nth-last-child(4) .dropdown-menu {
    right: 0;
    left: auto;
}

.mega-menu-container {
    position: relative;
}

.mega-menu-container .mega-menu-dropdown {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-10px) !important;
}

.mega-menu-container:hover .mega-menu-dropdown,
.mega-menu-dropdown:hover {
    transform: translateX(-50%) translateY(0) !important;
}

.mega-menu-dropdown {
    max-width: min(900px, calc(100vw - 2rem));
}

@media (min-width: 1200px) {
    .mega-menu-dropdown {
        left: 50% !important;
        transform: translateX(-50%) translateY(-10px) !important;
    }
}

#user-activity-btn {
    position: relative;
}

#user-activity-btn #active-time-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 1;
    font-size: 9px !important;
    padding: 2px 4px !important;
    line-height: 1;
    min-width: 18px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.navbar-brand-box {
    flex-shrink: 0;
    padding-right: 1rem;
}

.navbar-brand-box .logo img {
    transition: transform 0.2s ease;
}

.navbar-brand-box .logo:hover img {
    transform: scale(1.05);
}

.header-item .btn-icon.btn-topbar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-item .btn-icon.btn-topbar:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-item .btn-icon.btn-topbar:active {
    transform: translateY(0);
}

.topbar-user .btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.topbar-user .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topbar-user .header-profile-user {
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease;
}

.topbar-user .btn:hover .header-profile-user {
    border-color: rgba(255, 255, 255, 0.5);
}

.topbar-user .dropdown-menu {
    min-width: 220px;
    max-width: 260px;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    margin-top: 0.6rem;
    right: 0;
    left: auto;
    z-index: 1090;
}

.topbar-user .dropdown-menu .dropdown-header {
    font-size: 0.85rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    margin-bottom: 0.35rem;
}

.topbar-user .dropdown-menu .dropdown-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.25rem;
    border-radius: 6px;
}

.topbar-user .dropdown-menu .dropdown-item:hover {
    background-color: rgba(148, 163, 184, 0.15);
}

.header-item .btn:hover,
.header-item .btn:focus,
.header-item .btn:active {
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(12, 20, 30, 0.12);
}

.header-item .btn:focus:not(:focus-visible) {
    outline: none;
}

@media (max-width: 1200px) {
    .header-menu-right {
        gap: 0.25rem;
    }

    .header-item .btn {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem;
    }
}

@media (max-width: 768px) {
    .header-menu-right {
        gap: 0.25rem;
    }

    .header-item .btn-icon.btn-topbar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 18px !important;
    }

    .navbar-brand-box {
        padding-right: 0.5rem;
    }
}

/* ========= Horizontal layout page-content spacing fix ========= */
html[data-layout="horizontal"] .page-content {
    margin-top: auto !important;
}

html[data-layout="horizontal"] .main-content .page-content {
    margin-top: 20px !important;
    padding-top: 1.5rem !important;
}
[data-layout=horizontal] .container-fluid, [data-layout=horizontal] .layout-width {
    max-width: 100% !important;
    margin: 0 auto;
}

/* Keep DataTables and other custom styles source map reference last */
/*# sourceMappingURL=custom.min.css.map */
