/* LAPD Computer Theme - Polizei-System Tiefenstein */

:root {
  --police-blue: #003366;
  --police-dark-blue: #001f3f;
  --police-light-blue: #0074D9;
  --police-gold: #ffc107;
  --police-red: #dc3545;
  --police-gray: #343a40;
  --police-light-gray: #e9ecef;
  --text-light: #f8f9fa;
  --text-dark: #212529;
}

body {
  background-color: var(--police-dark-blue);
  color: var(--text-light);
  font-family: 'Roboto Mono', monospace, sans-serif;
}

/* Navbar styling */
nav.lapd-navbar {
  background-color: var(--police-blue);
  border-bottom: 3px solid var(--police-gold);
}

/* Header with badge */
.lapd-header {
  background-color: var(--police-blue);
  border-bottom: 2px solid var(--police-gold);
  position: relative;
}

.lapd-header h1 {
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lapd-badge {
  max-width: 80px;
  height: auto;
}

/* Card and Container Styling */
.lapd-card {
  background-color: var(--police-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.lapd-card-header {
  background-color: var(--police-blue);
  color: var(--text-light);
  border-bottom: 2px solid var(--police-gold);
  padding: 0.75rem 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.lapd-card-header::before {
  content: "★";
  color: var(--police-gold);
  margin-right: 10px;
}

.lapd-card-body {
  padding: 1.25rem;
}

/* Button Styling */
.lapd-btn {
  border-radius: 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.lapd-btn-primary {
  background-color: var(--police-blue);
  border: 2px solid var(--police-light-blue);
  color: var(--text-light);
}

.lapd-btn-primary:hover {
  background-color: var(--police-light-blue);
}

.lapd-btn-danger {
  background-color: var(--police-red);
  border: 2px solid #b52d3a;
  color: var(--text-light);
}

.lapd-btn-secondary {
  background-color: var(--police-gray);
  border: 2px solid #495057;
  color: var(--text-light);
}

/* Table Styling */
.lapd-table {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lapd-table thead {
  background-color: var(--police-blue);
}

.lapd-table th {
  border-bottom: 2px solid var(--police-gold);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.lapd-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lapd-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Alert Styling */
.lapd-alert {
  border-radius: 0;
  border-left: 4px solid var(--police-gold);
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  padding: 1rem;
  margin-bottom: 1rem;
}

.lapd-alert-danger {
  border-left-color: var(--police-red);
}

.lapd-alert-success {
  border-left-color: #28a745;
}

/* Form Controls */
.lapd-input, .lapd-select, .lapd-textarea {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
}

.lapd-input:focus, .lapd-select:focus, .lapd-textarea:focus {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: var(--police-light-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 116, 217, 0.25);
  color: var(--text-light);
  outline: none;
}

/* Terminal-like elements */
.lapd-terminal {
  background-color: #000;
  border: 1px solid var(--police-light-blue);
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
  color: #33ff33;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.lapd-terminal::before {
  content: "LAPD//TERMINAL> ";
  color: var(--police-gold);
}

/* Fahndung (Wanted) styling */
.lapd-wanted {
  border: 2px solid var(--police-red);
  position: relative;
}

.lapd-wanted::before {
  content: "WANTED";
  position: absolute;
  top: -10px;
  right: 10px;
  background-color: var(--police-red);
  color: var(--text-light);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Footer */
.lapd-footer {
  background-color: var(--police-blue);
  border-top: 2px solid var(--police-gold);
  color: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

/* Status indicators */
.lapd-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}

.lapd-status-online {
  background-color: #28a745;
  box-shadow: 0 0 5px #28a745;
}

.lapd-status-offline {
  background-color: var(--police-red);
  box-shadow: 0 0 5px var(--police-red);
}

.lapd-status-standby {
  background-color: var(--police-gold);
  box-shadow: 0 0 5px var(--police-gold);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: var(--police-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--police-light-blue);
}

/* Animation for alerts and notifications */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.lapd-alert-blink {
  animation: blink 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lapd-badge {
    max-width: 50px;
  }
  
  .lapd-header h1 {
    font-size: 1.5rem;
  }
}

/* Menu navigation */
.lapd-menu {
  background-color: var(--police-blue);
  min-height: 100vh;
  border-right: 2px solid var(--police-gold);
}

.lapd-menu-header {
  padding: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.lapd-menu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  border-left: 4px solid transparent;
  transition: all 0.3s;
}

.lapd-menu-item:hover, .lapd-menu-item.active {
  background-color: rgba(0, 0, 0, 0.2);
  border-left-color: var(--police-gold);
  text-decoration: none;
  color: var(--police-gold);
}

.lapd-menu-section {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
}

.lapd-user-info {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.lapd-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid var(--police-gold);
}

.lapd-user-name {
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}

.lapd-user-rank {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Add police badge */
.badge-container {
  text-align: center;
  margin-bottom: 20px;
}

.police-badge {
  max-width: 100px;
  margin: 0 auto;
}

/* Loading spinner */
.lapd-loader {
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--police-gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}