/* Brentwood Police Department Custom High-End Theme */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #070913;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0d1326 0%, #06080f 100%);
  --police-blue: #0b1430;
  --police-blue-light: #16244f;
  --gold: #d4af37;
  --gold-hover: #bfa030;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --panel-bg: rgba(11, 20, 48, 0.45);
  --panel-border: rgba(212, 175, 55, 0.15);
  --success: #10b981;
  --error: #ef4444;
  --glow-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.5rem;
  overflow-x: hidden;
}

/* Background Ambient Highlights */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, rgba(11, 20, 48, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 850px;
  z-index: 1;
}

/* BPD Logo & Header */
header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-wrapper {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  animation: float 6s ease-in-out infinite;
}

.badge-svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.header-crest {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #ffffff 30%, #ffd700 70%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.header-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-top: 0.5rem;
}

.divider {
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.25rem 0;
}

/* Premium Panel Container */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
  position: relative;
}

/* Form Question Styles */
.form-group {
  margin-bottom: 2.5rem;
  position: relative;
}

.form-group:last-of-type {
  margin-bottom: 2rem;
}

.question-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.question-number {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
}

label {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem 1.25rem;
  background: rgba(4, 6, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--glow-shadow);
  background: rgba(4, 6, 15, 0.9);
}

/* Autosave Info & Controls */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.autosave-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: background 0.3s ease;
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.btn-primary {
  padding: 0.9rem 2.25rem;
  background: linear-gradient(135deg, var(--gold) 0%, #a4821a 100%);
  border: none;
  border-radius: 10px;
  color: #070913;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, #e5be3b 0%, var(--gold) 100%);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

/* Messages & Banners */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideDown 0.3s ease;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* Admin Portal Styles */
.admin-card {
  margin-bottom: 1.5rem;
}

.login-container {
  max-width: 450px;
  margin: 0 auto;
}

.login-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gold);
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(4, 6, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  transition: all 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--glow-shadow);
}

/* Dashboard Layout */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
}

.search-box {
  position: relative;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 2.75rem;
  background: rgba(4, 6, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--glow-shadow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Submission Card List */
.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.submission-card {
  background: rgba(11, 20, 48, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.submission-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.submission-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.submission-id {
  font-size: 0.85rem;
  color: var(--gold);
  font-family: monospace;
  font-weight: 600;
}

.submission-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.qa-item {
  margin-bottom: 1.25rem;
}

.qa-item:last-child {
  margin-bottom: 0;
}

.qa-question {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.qa-answer {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  background: rgba(4, 6, 15, 0.35);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 2px solid var(--gold);
  white-space: pre-wrap;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Scaling */
@media (max-width: 768px) {
  body {
    padding: 1.5rem 1rem;
  }
  
  .panel {
    padding: 1.75rem;
  }
  
  .header-crest {
    font-size: 1.75rem;
  }
  
  .header-subtitle {
    font-size: 0.8rem;
  }
}

/* Premium Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--police-blue);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(212, 175, 55, 0.1);
  transform: scale(0.95);
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-badge-wrapper {
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 4s ease-in-out infinite;
}

.modal-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.modal-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-actions .btn-primary {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
}

.modal-actions .btn-secondary {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  to { transform: scale(1); }
}
