.mainMenu {
    height: 100%;
}

.ui.vertical.tabular.menu {
    height: 100%;
}

/* Sidebar full height fix */
.sidebar-container {
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.ui.pushable,
.ui.sidebar.pushable,
.pushable {
    min-height: 100vh !important;
    height: 100% !important;
}

.ui.sidebar,
.ui.left.sidebar,
.sidebar {
    height: 100vh !important;
    min-height: 100vh !important;
}


.ui.pusher,
.pusher {
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

.ui.thin.left.sidebar, .ui.thin.right.sidebar {
    width: 220px;
}

/* Prevent content overflow when sidebar is visible */
.ui.visible.thin.left.sidebar ~ .pusher {
    width: calc(100% - 220px) !important;
    transform: translate3d(220px, 0, 0) !important;
}

.app-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.pageContainer {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

i.icon.wizardButton {
    width: 40px;
    vertical-align: inherit !important;
}

i.icon.wizardButton:before {
    content: url("/images/wizard.svg");
    position: relative;
}

i.icon.d4icon:before {
    content: url("/images/d4.svg");
    position: relative;
}

i.icon.d6icon:before {
    content: url("/images/d6.svg");
    position: relative;
}

i.icon.d8icon:before {
    content: url("/images/d8.svg");
    position: relative;
}

i.icon.d10icon:before {
    content: url("/images/d10.svg");
    position: relative;
}

i.icon.d12icon:before {
    content: url("/images/d12.svg");
    position: relative;
}

i.icon.d20icon:before {
    content: url("/images/d20.svg");
    position: relative;
}

i.icon.d20smallicon:before {
    content: url("/images/d20_small.svg");
    position: relative;
    top: -2px;
    left: -5px;
}

i.icon.d4icon {
    width: 70px;
    vertical-align: inherit !important;
}

i.icon.d6icon {
    width: 70px;
    vertical-align: inherit !important;
}

i.icon.d8icon {
    width: 70px;
    vertical-align: inherit !important;
}

i.icon.d10icon {
    width: 70px;
    vertical-align: inherit !important;
}

i.icon.d12icon {
    width: 70px;
    vertical-align: inherit !important;
}

i.icon.d20icon {
    width: 70px;
    vertical-align: inherit !important;
}

button.customSmallIconButton {
    width: 44px;
    height: 44px;
    padding: 0px !important;
    color: white;
    background-color: black;
}

button.customIconButton {
    width: 74px;
    height: 74px;
    padding: 0px !important;
    color: white;
    background-color: black;
}

#dice-box-canvas,
#dice-box-canvas canvas {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/**************************************************************************/

.responsive-three-column-grid {
    display: block;
}

.responsive-three-column-grid > * {
    padding: 1rem;
}

@media (min-width: 768px) {
    .responsive-three-column-grid {
        display: grid;
        grid-auto-rows: 1fr;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.apexcharts-tooltip {
    color: black;
}

/* Submenu styling */
.mainMenu .submenu-header {
    font-weight: bold;
    cursor: pointer;
}

.mainMenu .submenu-header .dropdown.icon {
    float: right;
    margin-top: 0.2em;
    transition: transform 0.3s ease;
}

.mainMenu .submenu-item {
    padding-left: 2em !important;
    font-size: 0.92em;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.mainMenu .submenu-item.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-left-color: rgba(255, 255, 255, 0.4);
}

.mainMenu .submenu-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
