@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1e1e2f 0%, #1c1c2a 100%);
    color: #e0e0e0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fixiert Hintergrund beim Scrollen */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Wenn eine dynamische background-image Inline gesetzt wurde (z.B. per Template) ebenfalls fixieren */
body[style*="background-image"] {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Scroll soll über Seite gehen, nicht Container erzwingen zentrierte Position etwas lockern */
.container {
    margin-top: 60px;
}

/* Admin Dashboard specific styles */
body.admin-dashboard {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: unset;
    justify-content: unset;
}

body.admin-dashboard .container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
}

body.admin-dashboard::before {
    position: fixed;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* Haupt Container Stil (nach margin-top Ergänzung oben) */
.container {
    background: rgba(44, 47, 51, 0.85);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    animation: fadeIn 1s ease-in-out;
}

/* iOS Safari Fallback (fallback weil background-attachment: fixed dort oft buggy) */
@supports (-webkit-touch-callout: none) {
    body::before {
        background-attachment: scroll; /* vermeidet flackern */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.server-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid #5865f2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

h1 {
    font-weight: 600;
    font-size: 2em;
    margin-bottom: 10px;
    color: #ffffff;
}

p {
    font-size: 1.1em;
    color: #b9bbbe;
    margin-bottom: 30px;
}

.verify-button {
    background: #5865f2;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.verify-button:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

/* Admin Panel Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #dcddde;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #40444b;
    background-color: #36393f;
    color: #dcddde;
    box-sizing: border-box;
}

.input-group {
    display: flex;
}

.input-group span {
    padding: 12px;
    background-color: #40444b;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: 1px solid #40444b;
    border-right: none;
}

.input-group input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.preview-image {
    max-width: 100px;
    margin-top: 10px;
    border-radius: 5px;
}

a {
    color: #5865f2;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #7289da;
}

/* Legal Footer Styles */
.legal-links a,
.legal-footer a {
    color: #7289da;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.legal-links a:hover,
.legal-footer a:hover {
    color: #5865f2;
    opacity: 0.8;
}

/* Responsive adjustments for legal links */
@media (max-width: 480px) {
    .legal-links,
    .legal-footer {
        text-align: center;
    }
    
    .legal-links a,
    .legal-footer a {
        display: block;
        margin: 5px 0;
    }
}