/* Globale Stile & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: rgba(0,0,0,0.0); /* Transparent, damit das Spiel durchscheint */
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Verhindert Scrollen der Seite hinter dem MDT */
    /* Wichtig: Der Body selbst wird nicht per JS versteckt, nur der .mdt-container */
}

.mdt-container {
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    max-height: 900px;
    background-color: #101828; /* Sehr dunkles Blau-Grau */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none; /* WICHTIG: Standardmäßig ausgeblendet! Wird per JS auf 'flex' gesetzt. */
    overflow: hidden;
    border: 2px solid #2a3858; /* Optionaler Rand für besseren Kontrast */
}

/* Sidebar */
.mdt-sidebar {
    width: 260px;
    background-color: #182038;
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: #c0c8d8;
    border-right: 1px solid #2a3858;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a3858;
}

.mdt-logo {
    max-width: 80px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.sidebar-header h2 {
    font-size: 1.4em; /* Etwas kleiner für bessere Passform */
    color: #6cb2eb;
    margin-bottom: 5px;
}

.sidebar-header p { /* Für Officer Name */
    font-size: 0.9em;
    min-height: 1.2em; /* Verhindert Springen bei Namensänderung */
}

.mdt-nav ul {
    list-style: none;
}

.mdt-nav li a {
    display: flex; /* Für bessere Icon-Ausrichtung */
    align-items: center;
    padding: 12px 15px;
    color: #c0c8d8;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.95em;
}
.mdt-nav li a i {
    margin-right: 12px; /* Etwas mehr Abstand */
    width: 20px;
    text-align: center;
    font-size: 1.1em; /* Icons etwas größer */
}

.mdt-nav li a:hover {
    background-color: #2a3858;
    color: #ffffff;
}

.mdt-nav li a.active {
    background-color: #6cb2eb;
    color: #101828;
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #2a3858;
}

#closeMdtButtonOnUI { /* Eindeutige ID für den Button in der UI */
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#closeMdtButtonOnUI i {
    margin-right: 8px;
}
#closeMdtButtonOnUI:hover {
    background-color: #c9302c;
}

/* Hauptinhalt */
.mdt-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #101828;
}

.content-section {
    display: none;
}
.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mdt-content h1 {
    color: #6cb2eb;
    margin-bottom: 25px;
    font-size: 1.8em; /* Etwas kleiner für Tablet-Optik */
    border-bottom: 1px solid #2a3858;
    padding-bottom: 10px;
}

/* Suchleisten und Ergebnisse */
.search-bar {
    display: flex;
    margin-bottom: 25px;
}
.search-bar input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    background-color: #182038;
    border: 1px solid #2a3858;
    border-radius: 5px 0 0 5px;
    color: #e0e0e0;
    font-size: 1em;
}
.search-bar input[type="text"]:focus {
    outline: none;
    border-color: #6cb2eb;
    box-shadow: 0 0 0 2px rgba(108, 178, 235, 0.2);
}
.search-bar button {
    padding: 12px 20px;
    background-color: #6cb2eb;
    color: #101828;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    font-weight: 500;
}
.search-bar button:hover {
    background-color: #589ad8;
}

.results-container {
    background-color: transparent; /* Kein extra Hintergrund für den Container */
    padding: 0; /* Kein extra Padding */
    min-height: 100px;
}
.placeholder-text {
    color: #a0a8b8;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.citizen-card, .vehicle-card, .bolo-item {
    background-color: #182038; /* Dunklerer Hintergrund für Karten */
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    border: 1px solid #2a3858;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.citizen-card h3, .vehicle-card h3, .bolo-item h3 {
    color: #6cb2eb;
    margin-bottom: 12px;
    font-size: 1.2em;
}
.citizen-card p, .vehicle-card p, .bolo-item p {
    margin-bottom: 6px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #c0c8d8;
}
.citizen-card strong, .vehicle-card strong, .bolo-item strong {
    color: #e0e0e0;
    font-weight: 500;
}
.bolo-item .bolo-description { /* Spezifisch für BOLO Beschreibung */
    margin-bottom: 10px;
}
.bolo-item .bolo-meta { /* Spezifisch für BOLO Metadaten */
    font-size: 0.8em;
    color: #808898; /* Gedämpftere Farbe */
    text-align: right;
    margin-top: 10px;
}


/* BOLOs & andere Listen */
.new-entry-button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
    display: inline-flex; /* Für Icon + Text */
    align-items: center;
}
.new-entry-button i {
    margin-right: 8px;
}
.new-entry-button:hover {
    background-color: #4cae4c;
}

/* Quick Stats im Dashboard */
.quick-stats {
    display: grid; /* Besser für flexible Spalten */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive Spalten */
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.quick-stats > div {
    background-color: #182038;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #2a3858;
}
.quick-stats > div span:first-child {
    display: block;
    color: #a0a8b8;
    font-size: 0.9em;
    margin-bottom: 8px;
}
.quick-stats > div span:last-child {
    color: #6cb2eb;
    font-size: 2em;
    font-weight: 600;
}

.recent-activity {
    margin-top: 30px;
}
.recent-activity h3 {
    color: #c0c8d8;
    margin-bottom: 15px;
    font-size: 1.2em;
}
.recent-activity ul {
    list-style: none;
    padding-left: 0;
}
.recent-activity li {
    background-color: #182038;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.9em;
    border-left: 3px solid #6cb2eb;
}


/* Scrollbar Styling (optional, für Webkit-Browser) */
.mdt-content::-webkit-scrollbar {
    width: 10px;
}
.mdt-content::-webkit-scrollbar-track {
    background: #101828; /* Hintergrund der Scrollleiste, passend zum Content-Bg */
    border-radius: 10px;
}
.mdt-content::-webkit-scrollbar-thumb {
    background: #2a3858; /* Farbe des Scrollbalkens */
    border-radius: 10px;
    border: 2px solid #101828; /* Erzeugt einen kleinen Rand um den Thumb */
}
.mdt-content::-webkit-scrollbar-thumb:hover {
    background: #6cb2eb;
}