html, body {
    height: 100%;
    overflow: hidden;
    background-color: #121212;
    color: #e0e0e0;
}

/* Global Scrollbar Styles */
* {
    scrollbar-width: thin;
    scrollbar-color: #444 #121212;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Dark Mode Overrides */
.title, .subtitle, .label, .checkbox, .radio, strong {
    color: #e0e0e0 !important;
}
.box {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
}
.tabs a {
    color: #e0e0e0;
    border-bottom-color: #333;
}
.tabs li.is-active a {
    color: #00d1b2;
    border-bottom-color: #00d1b2;
}
.tabs.is-boxed li.is-active a {
    background-color: #1e1e1e;
    border-color: #333;
    border-bottom-color: transparent !important;
}
.tabs.is-boxed a:hover {
    background-color: #2c2c2c;
    border-bottom-color: #333;
}
hr {
    background-color: #333;
}

.container.is-fluid {
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100% !important;
}

.columns {
    height: 100%;
}

.box.is-fullheight-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #1e1e1e;
    border-radius: 0;
    padding-bottom: 0; /* Remove padding to allow content to hit bottom edge */
}

.scrolling-list {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px;
    background-color: #121212;
    color: #e0e0e0;
}

/* Anchor Sky List to Bottom */
#sky-list {
    display: flex;
    flex-direction: column;
}

#sky-list > div:first-child {
    margin-top: auto;
}

.scrolling-list.is-log {
    font-family: monospace;
    font-size: 0.85rem;
    background-color: #000;
    border: none;
}

/* Controls Styling */
#controls-wrapper {
    background-color: #1e1e1e;
}

/* UP Wrapper */
.up-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Progress Bar Customization */
.progress {
    background-color: #000 !important;
    height: 8px; /* Slightly taller than is-small? or keep it default */
}
.progress.is-small {
    height: 0.5rem; /* ~8px */
}
.progress::-webkit-progress-bar {
    background-color: #000 !important;
}
.progress::-moz-progress-bar {
    background-color: #000 !important;
}

/* UP Button */
#up-button {
    min-width: 120px;
    height: 45px;
    font-weight: bold;
    font-size: 1rem;
}

/* Mobile Specifics */
@media screen and (max-width: 1023px) {
    .scrolling-list {
        /* Removed padding-bottom as controls are now docked */
    }

    #controls-wrapper {
        /* Removed fixed positioning to dock to the list */
        width: 100%;
        padding: 10px;
        border-top: 1px solid #333;
        background-color: #1e1e1e;

        /* Increase bottom padding to account for mobile navigation bars/safe areas */
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    /* 25% Size Reduction for Controls on Mobile */
    #up-button {
        min-width: 90px;
        height: 34px;
        font-size: 0.75rem;
    }

    #up-button .icon.is-medium {
        height: 1.5rem;
        width: 1.5rem;
        font-size: 1rem; /* Adjust icon size inside button */
    }

    .column.mobile-tab-content {
        display: none;
        height: 100%;
    }

    .column.mobile-tab-content.is-active {
        display: block;
    }

    .is-hidden-mobile {
        display: none !important;
    }
}

/* UP Button Pulse */
@keyframes pulse-primary {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 209, 178, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 209, 178, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 209, 178, 0);
    }
}

.pulse-effect:active {
    transform: scale(0.95);
}

.pulse-animation {
    animation: pulse-primary 0.5s;
}

img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}