/*body {
    background: yellow !important;
}
.tab {
    background: green !important;
}
.tablinks {
    background: red !important;
}*/

/* Push page content below the fixed tab */
.app-container {
    /*padding-top: 56px;*/
    padding-top: 50px;
    /*padding-top: 0;*/
    box-sizing: border-box;
    background: transparent;
    /*background: black !important;*/
    position: relative;
    z-index: 1000;
}
/* Fixed top bar */
.tab {
    position: fixed;
    top: env(safe-area-inset-top);
    background: transparent;
    background: linear-gradient(0deg, white 0%, gray 100%);
    z-index: 900;
    left: 50%;
    transform: translateX(-50%);       /* center horizontally */
    width: calc(100% - 24px);          /* screen minus margins left-right spacing */
    max-width: 650px;                   /* app container width on wide screens */
    min-width: 350px;                   /* minimum width on small screens */
    height: 56px !important;
    padding: 0 16px;                    /* internal spacing */
    margin-bottom: 1px;                /* bottom spacing */

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 8px;
    color: #333;
    overflow: hidden;
    box-sizing: border-box;
}

/* Tab buttons */
.tab button {
    flex: 1 1 0;
    flex-direction: column;   /* emoji on top, text below */
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 8px;
    max-width: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    border-radius: 8px;
    margin: 0 1px;
    height: 100% !important;
    min-height: 56px;
    font-size: 12px;
    display: flex;
    flex-shrink: 0;
    color: inherit;
}

.tab button:hover {
    background-color: #e8eaed;
}

.tab button.active {
    background-color: transparent;
    box-shadow: inset 0 -4px 0 rgba(255,255,255,0.12);
    position: relative;
    z-index: 1;
}


/*.app-container {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}*/
/* Tab content (your existing style) */
.tabcontent {
    display: none;
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
