/* ==========================================================================
   7D2D Stats – Zentrale Styles
   ========================================================================== */

/* Grund-Reset & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0d1117;
    color: #c9d1d9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Container & Layout */
.container {
    max-width: 1400px;
}

/* Navbar (fixiert oben) */
.navbar {
    background: #161b22 !important;
    border-bottom: 1px solid #30363d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.navbar-brand {
    font-weight: 700;
    color: #58a6ff !important;
}

.nav-link {
    color: #c9d1d9 !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #58a6ff !important;
}

/* Cards & Items */
.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
/*
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
*/
.card-img-top.item-icon {
    
	background-color: rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important;
    padding: 10px;
    
}

.card-title {
    color: #e6edf3;
    font-weight: 600;
}
.card {
	color:white;
}
.card-text.text-warning {
    color: #f0883e !important;
}
        .item-icon {
            max-height: 90px;
            width: auto;
            margin: 8px auto;
            display: block;
            object-fit: contain;
            background: #161b22;
            padding: 8px;
            border-radius: 6px;
        }
/* Quality Badges (wie im Spiel) */
.quality-badge {
    font-weight: bold;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    color: #000;
    font-size: 0.9rem;
}

.quality-1 { background: #cccccc; }
.quality-2 { background: #4caf50; color: white; }
.quality-3 { background: #2196f3; color: white; }
.quality-4 { background: #9c27b0; color: white; }
.quality-5 { background: #ff9800; color: white; }
.quality-6 { background: #ffeb3b; color: black; }

/* Buttons */
.btn-success {
    background: #238636;
    border-color: #238636;
}

.btn-success:hover {
    background: #2ea043;
    border-color: #2ea043;
}

.btn-danger {
    background: #da3633;
    border-color: #da3633;
}

.btn-primary {
    background: #388bfd;
    border-color: #388bfd;
}

/* Alerts */
.alert-success {
    background: #1f6d3f;
    border-color: #238636;
    color: #c9d1d9;
}

.alert-danger {
    background: #5d1b1b;
    border-color: #da3633;
    color: #c9d1d9;
}

/* Tabellen */
.table-dark {
    --bs-table-bg: #161b22;
    --bs-table-color: #c9d1d9;
    --bs-table-border-color: #30363d;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(48,54,61,0.4);
}

/* Formulare */
.form-control, .form-select {
    background: #232d3d;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

.form-control:focus, .form-select:focus {
    background: #0d1117;
    border-color: #388bfd;
    box-shadow: 0 0 0 0.25rem rgba(56,139,253,0.25);
    color: #c9d1d9;
}
.form-text {
	color:white;
}

/* Kleinere Stats-Karte */
.stats-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.stats-card p {
    font-size: 1.5rem;
    margin: 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .item-icon {
        max-height: 70px;
    }
    .stats-card p {
        font-size: 1.2rem;
    }
}