body {
    background-color: #1a1a1a;
    color: #ddd;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #b22222;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 2em;
    letter-spacing: 3px;
    flex-shrink: 0;
}

.wrapper {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    width: 95%;
}

.filters {
    width: 260px;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px #b22222;
    color: #f0f0f0;
    font-size: 1rem;
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: flex-start;
}

.filters h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ff5c5c;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.3em;
}

.filters label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
}

.filters input[type="text"],
.filters select {
    width: 100%;
    padding: 8px 10px;
    background-color: #1a1a1a;
    color: #f0f0f0;
    border: 1px solid #b22222;
    border-radius: 4px;
    font-size: 1rem;
}

main {
    flex: 1;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2a2a2a;
    color: #f0f0f0;
    box-shadow: 0 0 15px #b22222;
    border-radius: 6px;
}

th,
td {
    padding: 12px 15px;
    border-bottom: 1px solid #444;
    text-align: left;
}

th {
    background-color: #b22222;
    cursor: pointer;
    user-select: none;
    position: relative;
    text-transform: uppercase;
}

th:hover {
    background-color: #d53c3c;
}

th .sort-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    user-select: none;
}

tr:hover {
    background-color: #501111;
}

tr.clickable {
    cursor: pointer;
}

.placeholder-icon {
    width: 32px;
    height: 32px;
    background: url('https://i.imgur.com/0y0i1NP.png') no-repeat center center;
    background-size: contain;
    display: inline-block;
}

.form-container {
    max-width: 400px;
    margin: 0 auto 30px auto;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #b22222;
}

form label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #b22222;
    background-color: #1a1a1a;
    color: #eee;
    font-size: 1rem;
}

form button,
.btn-logout,
.btn-shopverwaltung,
button[type="submit"] {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #b22222;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 10px #ff4d4d;
    user-select: none;
    transition: background-color 0.3s ease;
}

form button:hover,
.btn-logout:hover,
.btn-shopverwaltung:hover,
button[type="submit"]:hover {
    background-color: #ff4d4d;
}

.logged-in-info {
    max-width: 900px;
    margin: 15px auto 30px auto;
    color: #b22222;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

input[type="number"] {
    text-align: center;
    width: 80px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #b22222;
    background-color: #1a1a1a;
    color: #eee;
    font-size: 1rem;
}

.message {
    max-width: 400px;
    margin: 15px auto;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
}

.message.success {
    background-color: #4caf50;
    color: white;
}

.message.error {
    background-color: #a63636;
    color: white;
}

@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }
    .filters {
        width: 100%;
        margin-bottom: 20px;
    }
}
