/* Tab container layout */
menu[role=tablist] {
    position: relative;
    margin: 0 0 -2px;
    text-indent: 0;
    list-style-type: none;
    display: flex;
    padding-left: 3px;
}

/* Combined styles for a single tab button */
menu[role=tablist] button {
    /* Base properties */
    z-index: 1;
    display: block;
    color: #222;
    text-decoration: none;
    min-width: unset;
    
    /* Luna theme styles */
    background: linear-gradient(180deg, #fff, #fafaf9 26%, #f0f0ea 95%, #ecebe5);
    margin-left: -1px;
    margin-right: 2px;
    border: 1px solid #91a7b4;
    border-bottom: 1px solid #919b9c;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    padding: 1px 12px 3px;
}

/* Hover state */
menu[role=tablist] button:hover {
    border-top: 1px solid #e68b2c;
    box-shadow: inset 0 1px #ffc73c;
}

/* Focus state */
menu[role=tablist] button:focus {
    outline: 1px dotted #222;
    outline-offset: -4px;
}

/* Selected state */
menu[role=tablist] button[aria-selected=true] {
    position: relative;
    z-index: 8;
    margin-top: -2px;
    margin-bottom: 0px;

    /* Luna theme styles */
    background: #fcfcfe;
    border-color: #919b9c;
    margin-right: -1px;
    border-bottom: 1px solid transparent;
    border-top: 1px solid #e68b2c;
    box-shadow: inset 0 1px #ffc73c;
}

/* Justified layout helper */
menu[role=tablist].justified button {
    flex-grow: 1;
    text-align: center;
}

/* Tab panel content area */
[role=tabpanel] {
    padding: 14px;
    clear: both;
    border: 1px solid #919b9c;
    position: relative;
    z-index: 2;
    margin-bottom: 9px;
    background: #fcfcfe; /* Simplified background for Luna */
    box-shadow: inset 1px 1px #fcfcfe, inset -1px -1px #fcfcfe, 1px 2px 2px 0 rgba(208, 206, 191, .75);
}