html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #0c0d0f;
    color: #e7e2d8;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #090a0c;
    border-right: 1px solid #3a3328;
    padding: 24px 18px;
    box-sizing: border-box;
    box-shadow: 4px 0 15px rgba(0,0,0,0.4);
}

.brand {
    margin-bottom: 35px;
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f0eadf;
}

.brand-subtitle {
    margin-top: 6px;
    color: #9f978b;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .main-nav a {
        display: block;
        padding: 13px 15px;
        border-radius: 8px;
        color: #c7c0b5;
        font-weight: 500;
        transition: all .2s ease;
    }

        .main-nav a:hover {
            background: #1b1d20;
            color: #ffffff;
        }

        .main-nav a.active {
            background: linear-gradient(90deg,#8d6d39,#b58b49);
            color: white;
            box-shadow: 0 0 10px rgba(181,139,73,.35);
        }

.main-content {
    flex: 1;
    padding: 35px;
    background: #111315;
}

h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
    color: #f0eadf;
    border-bottom: 1px solid #3a3328;
    padding-bottom: 10px;
}

h2,
h3 {
    color: #ece6da;
}

p {
    color: #c7c0b5;
    line-height: 1.6;
}

.card {
    background: #181a1d;
    border: 1px solid #312b22;
    border-radius: 10px;
    padding: 20px;
}

button,
.btn {
    background: linear-gradient(90deg,#8d6d39,#b58b49);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: .2s;
}

    button:hover,
    .btn:hover {
        filter: brightness(1.1);
    }

input,
select,
textarea {
    background: #181a1d;
    color: #ece6da;
    border: 1px solid #3a3328;
    border-radius: 6px;
    padding: 8px 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #191b1e;
    color: #d8cfbf;
    border-bottom: 2px solid #8d6d39;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #2c2c2c;
}

tr:hover {
    background: #1a1d21;
}

#blazor-error-ui {
    display: none;
}
.sidebar {
    display: flex;
    flex-direction: column;
}

.main-nav {
    flex: 1;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.user-info {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-name {
    color: #f5f5f5;
    font-weight: 700;
}

.user-role {
    margin-top: 0.2rem;
    color: #d8ad5c;
    font-size: 0.85rem;
}
/* Instanz-Konfiguration */
.configuration-page { padding: 2rem; display: grid; gap: 1.25rem; }
.configuration-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.configuration-header h1 { margin: .2rem 0; }
.configuration-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.configuration-tab { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; padding: .75rem 1rem; border-radius: .55rem; }
.configuration-tab.active { border-color: #d59b32; background: rgba(213,155,50,.14); }
.configuration-tab:disabled { opacity: .45; }
.configuration-message { padding: 1rem 1.1rem; border-radius: .6rem; border: 1px solid; }
.configuration-message.success { border-color: rgba(65,190,120,.55); background: rgba(65,190,120,.12); }
.configuration-message.error { border-color: rgba(220,75,75,.55); background: rgba(220,75,75,.12); }
.current-map { display: grid; gap: .2rem; text-align: right; }
.current-map span { opacity: .65; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.map-template-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1rem; margin-top: 1rem; }
.map-template-card { border: 1px solid rgba(255,255,255,.11); border-radius: .8rem; padding: 1.15rem; background: rgba(255,255,255,.025); display: grid; gap: 1rem; }
.map-template-card.selected { border-color: rgba(65,190,120,.55); }
.map-template-card-top { display: flex; justify-content: space-between; gap: 1rem; }
.map-template-card h3 { margin: .2rem 0 0; }
.map-template-details { display: grid; gap: .55rem; margin: 0; }
.map-template-details div { display: grid; grid-template-columns: 110px 1fr; gap: .75rem; }
.map-template-details dt { opacity: .65; }
.map-template-details dd { margin: 0; overflow-wrap: anywhere; }
.btn-control-primary { background: #2b6f9f; border-color: #2b6f9f; color: white; }
@media (max-width: 720px) { .configuration-page { padding: 1rem; } .configuration-header { flex-direction: column; } .current-map { text-align: left; } }
