/* === Basic Reset & Global Styles === */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    overflow: hidden; /* Prevent scrolling */
    background-color: #334433; /* Original body background */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Modern font stack */
    color: #f0f0f0;
    box-sizing: border-box; /* Consistent box model */
}

*, *:before, *:after {
    box-sizing: inherit; /* Inherit box-sizing */
}


a {
    color: #aae;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* === Layout Containers === */
#app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    width: 100%;
    background-color: #2a3a2a;
    padding: 0 15px;
    flex-shrink: 0;
    border-bottom: 1px solid #1a2a1a;
}

#main-content {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

#player-container {
    flex-grow: 1;
    height: 100%;
    background-color: #000;
}

#chat-container {
    width: 350px;
    height: 100%;
    flex-shrink: 0;
    background-color: #18181b;
    border-left: 1px solid #1a2a1a;
}

/* === Top Panel Elements === */
.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.link-list li {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 5px;
    flex-shrink: 0;
}

.link-list li a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.link-list li a:hover {
    background-color: #4a5a4a;
    color: #fff;
    text-decoration: none;
}

.link-list li.selected a {
    background-color: #5b8d63;
    color: #fff;
    font-weight: bold;
}

.link-list li img {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

#donate-links {
    overflow: visible;
}
#donate-links img {
    height: 24px;
}
#donate-links a {
    padding: 3px 5px;
}

/* === IFrames === */
iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* === Placeholder Content (Optional) === */
.placeholder-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    color: #aaa;
    background-color: #111;
    font-size: 1.1em;
    text-align: center;
}