@import url('/fonts/poppins.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 270px; /* Platz für Sidebar */
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        margin-left: 0; /* Kein Platz für Sidebar, wenn ausgeblendet */
    }
}

h1, h2 {
    text-align: center;
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff007a, #00ffcc);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.5);
}

/* Entfernte nav-Stile, da in nav.php definiert */
/* nav { ... } */
/* nav a { ... } */

/* Allgemeines Styling für normale <a>-Tags */
a {
    color: #00ffcc;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.error {
    color: #ff4d4d;
    text-align: center;
    margin: 10px 0;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

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

ul li {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
}

form li button {
    width: auto;
    display: inline-block;
    padding: 8px 16px;
    margin-left: 10px;
}

img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

footer a {
    display: inline-block;
    padding: 8px 16px;
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #00ffcc;
    transition: all 0.3s ease;
}

footer a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

@media (max-width: 400px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    input, button, footer a, a {
        font-size: 0.9rem;
    }
}

/* Häkchen-Styling */
.read-status.delivered {
    color: grey;
    font-size: 12px;
}

.read-status.read {
    color: green;
    font-size: 12px;
}

/* Kontextmenü-Styling */
#context-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 1000;
    cursor: pointer;
}

#context-menu div:hover {
    background: #f0f0f0;
}

/* Chat-Box */
#chat-box p {
    margin: 5px 0;
    padding: 5px;
}

#chat-box p:hover {
    background: #f9f9f9;
}