body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Login page styles */
#Login {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

#Login main {
    width: 100%;
    max-width: 340px;
    padding: 2rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    box-sizing: border-box;
}

#Login h1 {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#Login label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

#Login input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    box-sizing: border-box;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
}

#Login input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#Login button {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

#Login button:hover {
    transform: translateY(-1px);
}

#Login button:active {
    transform: translateY(0);
}
#Login .register {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

#Login .flash {
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

#Login a {
    color: inherit;
}

#Login main > p:last-child {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}

#Login a {
    color: inherit;
    text-decoration: none;
}

/* register page styles */
#Register {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

#Register main {
    width: 100%;
    max-width: 340px;
    padding: 2rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    box-sizing: border-box;
}

#Register h1 {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#Register label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

#Register input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    box-sizing: border-box;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
}

#Register input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#Register button {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

#Register button:hover {
    transform: translateY(-1px);
}

#Register button:active {
    transform: translateY(0);
}
#Register .register {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

#Register .flash {
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

#Register a {
    color: inherit;
}

#Register main > p:last-child {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}

#Register a {
    color: inherit;
    text-decoration: none;
}

/* Server browser styles */
#ServerBrowser {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

#ServerBrowser header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#ServerBrowser .servers {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.server {
    display: block;
    padding: 1rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.server:hover {
    transform: translateY(-2px);
}

.server h2 {
    margin: 0;
    font-size: 1.1rem;
}

.server .state {
    margin: 0.2rem 0 0.9rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.server .state.up {
    color: #2e7d32;
}

.server .state.down {
    opacity: 0.55;
}

.server .uptime {
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.75;
}

.server dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
}

.server dt {
    font-weight: 600;
}

.server dd {
    margin: 0;
}

/* Panel layout */
.panel-sidebar {
    width: 220px;
}

.server-console {
    height: 300px;
    overflow-y: auto;
}

.console-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}

/* File browser styles */
#FileBrowser {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

#FileBrowser content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.files {
    list-style: none;
    padding: 0;
    margin: 0;
}

.files li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.files li:hover {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
}

.files li + li {
    margin-top: 0.25rem;
}

.files li .delete {
    margin-left: auto;
}