/* LAPD Computer Theme - Polizei-System Tiefenstein */

:root {
  --police-blue: #2563eb;
  --police-dark-blue: #1e293b;
  --police-light-blue: #60a5fa;
  --police-gold: #fbbf24;
  --police-red: #ef4444;
  --police-gray: #f3f4f6;
  --police-light-gray: #f9fafb;
  --text-light: #f9fafb;
  --text-dark: #1e293b;
  --shadow: 0 8px 24px rgba(30,41,59,0.12);
  --radius: 16px;
  --transition: all 0.2s cubic-bezier(.4,0,.2,1);
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--police-light-gray) 0%, var(--police-gray) 100%);
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Navbar styling */
nav.lapd-navbar {
  background: linear-gradient(90deg, var(--police-blue) 60%, var(--police-light-blue) 100%);
  border-bottom: 2px solid var(--police-gold);
  box-shadow: var(--shadow);
}

/* Header with badge */
.lapd-header {
  background: linear-gradient(90deg, var(--police-blue) 60%, var(--police-light-blue) 100%);
  border-bottom: 2px solid var(--police-gold);
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
}

.lapd-header h1 {
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 2.2rem;
  font-family: var(--font-main);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lapd-badge {
  max-width: 72px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(30,41,59,0.15));
}

/* Card and Container Styling */
.lapd-card {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.lapd-card-header {
  background: linear-gradient(90deg, var(--police-blue) 60%, var(--police-light-blue) 100%);
  color: var(--text-light);
  border-bottom: 2px solid var(--police-gold);
  padding: 1.2rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.lapd-card-header::before {
  content: "\1F46E";
  color: var(--police-gold);
  margin-right: 14px;
  font-size: 1.3em;
}

.lapd-card-body {
  padding: 2rem;
}

/* Button Styling */
.lapd-btn {
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow);
  border: none;
  font-size: 1rem;
}

.lapd-btn-primary {
  background: linear-gradient(90deg, var(--police-blue) 60%, var(--police-light-blue) 100%);
  color: var(--text-light);
  border: none;
}

.lapd-btn-primary:hover {
  background: var(--police-light-blue);
  color: var(--police-dark-blue);
  box-shadow: 0 4px 16px rgba(96,165,250,0.15);
}

.lapd-btn-danger {
  background: linear-gradient(90deg, var(--police-red) 60%, #f87171 100%);
  color: var(--text-light);
  border: none;
}

.lapd-btn-secondary {
  background: var(--police-gray);
  color: var(--police-dark-blue);
  border: none;
}

/* Table Styling */
.lapd-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
}

.lapd-table thead {
  background: linear-gradient(90deg, var(--police-blue) 60%, var(--police-light-blue) 100%);
}

.lapd-table th {
  border-bottom: 2px solid var(--police-gold);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem;
}

.lapd-table td {
  border-bottom: 1px solid var(--police-light-gray);
  padding: 1rem;
}

.lapd-table tbody tr:hover {
  background: var(--police-light-gray);
}

/* Alert Styling */
.lapd-alert {
  border-radius: var(--radius);
  border-left: 4px solid var(--police-gold);
  background: linear-gradient(90deg, #fff 60%, var(--police-light-gray) 100%);
  color: var(--police-dark-blue);
  padding: 1.2rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.lapd-alert-danger {
  border-left-color: var(--police-red);
  background: linear-gradient(90deg, #fff 60%, #fee2e2 100%);
}

.lapd-alert-success {
  border-left-color: #28a745;
  background: linear-gradient(90deg, #fff 60%, #d1fae5 100%);
}

/* Form Controls */
.lapd-input, .lapd-select, .lapd-textarea {
  background: var(--police-light-gray);
  border: 1px solid var(--police-blue);
  color: var(--police-dark-blue);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
}

.lapd-input:focus, .lapd-select:focus, .lapd-textarea:focus {
  background: #fff;
  border-color: var(--police-light-blue);
  box-shadow: 0 0 0 2px var(--police-light-blue);
  color: var(--police-dark-blue);
  outline: none;
}

/* Terminal-like elements */
.lapd-terminal {
  background: #18181b;
  border: 2px solid var(--police-blue);
  border-radius: var(--radius);
  font-family: 'Fira Mono', 'Roboto Mono', monospace;
  color: #a3e635;
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.lapd-terminal::before {
  content: "LAPD//TERMINAL> ";
  color: var(--police-gold);
  font-weight: 600;
}

/* Fahndung (Wanted) styling */
.lapd-wanted {
  border: 2px solid var(--police-red);
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lapd-wanted::before {
  content: "WANTED";
  position: absolute;
  top: -14px;
  right: 18px;
  background: linear-gradient(90deg, var(--police-red) 60%, #f87171 100%);
  color: var(--text-light);
  padding: 4px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
.lapd-footer {
  background: linear-gradient(90deg, var(--police-blue) 60%, var(--police-light-blue) 100%);
  border-top: 2px solid var(--police-gold);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

/* Status indicators */
.lapd-status {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: var(--shadow);
}

.lapd-status-online {
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.lapd-status-offline {
  background-color: var(--police-red);
  box-shadow: 0 0 8px var(--police-red);
}

.lapd-status-standby {
  background-color: var(--police-gold);
  box-shadow: 0 0 8px var(--police-gold);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--police-light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--police-blue);
  border-radius: var(--radius);
}

::-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 1.2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lapd-badge {
    max-width: 40px;
  }
  .lapd-header h1 {
    font-size: 1.3rem;
  }
  .lapd-card-body {
    padding: 1rem;
  }
  .lapd-card-header {
    padding: 0.8rem 1rem;
  }
  .lapd-footer {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* Menu navigation */
.lapd-menu {
  background: linear-gradient(180deg, var(--police-blue) 60%, var(--police-light-blue) 100%);
  min-height: 100vh;
  border-right: 2px solid var(--police-gold);
  box-shadow: var(--shadow);
  border-radius: var(--radius) 0 0 var(--radius);
}

.lapd-menu-header {
  padding: 1.5rem 1rem;
  border-bottom: 2px solid var(--police-gold);
  font-size: 1.2rem;
  font-weight: 600;
}

.lapd-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-light);
  border-left: 4px solid transparent;
  transition: var(--transition);
  font-size: 1.05rem;
  border-radius: var(--radius) 0 0 var(--radius);
}

.lapd-menu-item:hover, .lapd-menu-item.active {
  background: var(--police-light-blue);
  border-left-color: var(--police-gold);
  text-decoration: none;
  color: var(--police-dark-blue);
  font-weight: 600;
}

.lapd-menu-section {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(30,41,59,0.5);
  padding: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.lapd-user-info {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--police-light-blue);
  display: flex;
  align-items: center;
}

.lapd-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 16px;
  border: 2px solid var(--police-gold);
  box-shadow: var(--shadow);
}

.lapd-user-name {
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  font-size: 1.1rem;
}

.lapd-user-rank {
  font-size: 0.95rem;
  color: rgba(30,41,59,0.7);
  margin: 0;
}

/* Add police badge */
.badge-container {
  text-align: center;
  margin-bottom: 32px;
}

.police-badge {
  max-width: 80px;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(30,41,59,0.15));
}

/* Loading spinner */
.lapd-loader {
  border: 6px solid var(--police-light-gray);
  border-top: 6px solid var(--police-gold);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 0.8s linear infinite;
  margin: 32px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}