
/* =========================
   Allgemeines Layout
   ========================= */

body {
    font-family: system-ui, sans-serif;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    background: #f5f5f5;
}

h1 {
    margin-bottom: 5px;
}

.host {
    color: #666;
    margin-bottom: 30px;
}

/* =========================
   Navigation
   ========================= */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.top-bar h1 {
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    background: white;
    border-radius: 6px;
    color: #1769aa;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    background: #e8f1fa;
    text-decoration: underline;
}

/* =========================
   Dateiliste
   ========================= */

ul {
    list-style: none;
    padding: 0;
}

li {
    background: white;
    margin: 6px 0;
    padding: 12px 16px;
    border-radius: 6px;
}

.file-link {
    text-decoration: none;
    color: #1769aa;
    display: block;
}

.file-link:hover {
    text-decoration: underline;
}

/* =========================
   Inhalts- und Login-Boxen
   ========================= */

.box {
    background: white;
    padding: 25px;
    border-radius: 6px;
    max-width: 700px;
}

.login-box {
    max-width: 400px;
}

/* =========================
   Formulare
   ========================= */

.field {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="password"],
input[type="text"],
input[type="file"],
select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    font-size: 16px;
}

/* =========================
   Buttons
   ========================= */

button {
    border: none;
    background: #1769aa;
    color: white;
    padding: 11px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #125788;
}

/* =========================
   Status- und Rückmeldungen
   ========================= */

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.success {
    background: #e5f5e5;
    color: #176b17;
}

.error {
    background: #ffe5e5;
    color: #a00000;
}

/* =========================
   Upload-Links
   ========================= */

.uploaded-link {
    display: block;
    margin-top: 10px;
    overflow-wrap: anywhere;
}

.copy-link {
    margin-top: 12px;
}

/* =========================
   Logout
   ========================= */

.logout {
    margin-top: 25px;
    display: inline-block;
    color: #1769aa;
    text-decoration: none;
}

.logout:hover {
    text-decoration: underline;
}

/* =========================
   Responsive Design
   ========================= */

@media (max-width: 600px) {
    body {
        margin: 20px auto;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-links {
        flex-wrap: wrap;
    }
}

/* =========================
   Minecraft Live Chat
   ========================= */

.chat-container {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-entry {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 16px;
    overflow-wrap: anywhere;
    font-family: monospace;
    font-size: 14px;
}

.chat-status {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.chat-empty {
    color: #888;
    padding: 15px;
    text-align: center;
}

.chat-entry.new-message {
    animation: chat-highlight 1.5s ease-out;
}

@keyframes chat-highlight {
    from {
        background: #e5f5e5;
    }
    to {
        background: #f5f5f5;
    }
}