/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0e27;
  color: #e0e0e0;
  overflow-x: hidden;
  position: relative;
}
.nigeria-flag {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 35px;
  background: linear-gradient(to right, #008753 0 33%, #ffffff 33% 66%, #008753 66% 100%);
  border: 2px solid #00ff88;
  border-radius: 4px;
  z-index: 2000;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}
.nigeria-flag:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* ============================================
   ANIMATED BACKGROUND - LIQUID EFFECT
   ============================================ */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #0f1535 50%, #0a0e27 100%);
}

/* Enhanced gradient orbs with more vibrant colors and smoother transitions */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  mix-blend-mode: screen;
  transition: transform 0.05s ease-out;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.7) 0%, transparent 70%);
  top: -150px;
  left: -150px;
  animation: liquidFloat1 28s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 150, 255, 0.6) 0%, transparent 70%);
  bottom: -200px;
  right: -150px;
  animation: liquidFloat2 32s ease-in-out infinite;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.5) 0%, transparent 70%);
  top: 30%;
  right: 5%;
  animation: liquidFloat3 30s ease-in-out infinite;
}

@keyframes liquidFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(60px, -60px) scale(1.15);
  }
  50% {
    transform: translate(-40px, 40px) scale(0.9);
  }
  75% {
    transform: translate(50px, 60px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes liquidFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-50px, 50px) scale(0.95);
  }
  50% {
    transform: translate(60px, -40px) scale(1.12);
  }
  75% {
    transform: translate(-40px, -60px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes liquidFloat3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, 40px) scale(1.08);
  }
  50% {
    transform: translate(-60px, -30px) scale(0.92);
  }
  75% {
    transform: translate(30px, -50px) scale(1.06);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Particle Animation */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 255, 136, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(var(--tx));
  }
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 40px 20px;
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  text-align: center;
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;
}

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

.title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }
}

.tagline {
  font-size: 1.25rem;
  color: #00ff88;
  margin-bottom: 15px;
  font-weight: 500;
}

@media (max-width: 480px) {
  .tagline {
    font-size: 1rem;
  }
}

.description {
  font-size: 0.95rem;
  color: #a0a0a0;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}

.form-card {
  width: 100%;
  max-width: 600px;
  background: rgba(15, 20, 40, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 20px;
    border-radius: 15px;
  }
}

/* ============================================
   FORM STYLES
   ============================================ */
.report-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #00ff88;
  display: flex;
  align-items: center;
  gap: 5px;
}

.required {
  color: #ff6b6b;
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
  color: #e0e0e0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.form-input::placeholder {
  color: #707070;
}

.textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 300px;
}

.char-count {
  font-size: 0.8rem;
  color: #707070;
  text-align: right;
}

/* ============================================
   CATEGORY SELECTOR STYLES
   ============================================ */
.category-input-wrapper {
  position: relative;
}

.category-input {
  width: 100%;
}

.category-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 20, 40, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.category-suggestions.active {
  display: block;
}

.category-suggestion {
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  font-size: 0.9rem;
  color: #e0e0e0;
}

.category-suggestion:last-child {
  border-bottom: none;
}

.category-suggestion:hover {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  padding-left: 20px;
}

.category-suggestion.selected {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  font-weight: 500;
}

.selected-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 32px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #00ff88;
  animation: slideInRight 0.3s ease-out;
}

.category-chip button {
  background: none;
  border: none;
  color: #00ff88;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.category-chip button:hover {
  color: #ff6b6b;
  transform: scale(1.2);
}

/* ============================================
   RESPONSIVE CATEGORY SELECTOR
   ============================================ */
@media (max-width: 480px) {
  .category-suggestions {
    max-height: 200px;
  }

  .category-chip {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .selected-categories {
    gap: 6px;
  }
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-text {
  font-size: 0.85rem;
  color: #00ff88;
  min-height: 20px;
}

.location-display {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-top: 8px;
}

/* ============================================
   UPLOAD AREA
   ============================================ */
.upload-area {
  position: relative;
  border: 2px dashed rgba(0, 255, 136, 0.4);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 255, 136, 0.05);
}

@media (max-width: 480px) {
  .upload-area {
    padding: 20px;
  }
}

.upload-area:hover {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
}

.upload-area.dragover {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.15);
  transform: scale(1.02);
}

.file-input {
  display: none;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon {
  font-size: 2.5rem;
}

.upload-placeholder p {
  color: #e0e0e0;
  font-weight: 500;
}

.upload-hint {
  font-size: 0.8rem;
  color: #707070;
}

.preview-container {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-item {
  position: relative;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.preview-item img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 4px;
}

.preview-item audio {
  max-width: 200px;
  height: 30px;
}

.remove-btn {
  background: rgba(255, 107, 107, 0.2);
  border: none;
  color: #ff6b6b;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: rgba(255, 107, 107, 0.4);
}

/* ============================================
   VOICE RECORDING
   ============================================ */
.voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.recording-time {
  font-size: 0.85rem;
  color: #ff6b6b;
  font-weight: 600;
  min-width: 50px;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.toggle-group {
  gap: 0;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle-input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 28px;
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  top: 1px;
  left: 1px;
  transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-slider {
  background: rgba(0, 255, 136, 0.4);
  border-color: #00ff88;
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(22px);
  background: #00ff88;
}

.toggle-text {
  color: #e0e0e0;
  font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
  color: #0a0e27;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

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

.btn-primary.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.btn-primary:active .btn-glow {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.btn-secondary {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 255, 136, 0.25);
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.btn-icon {
  font-size: 1.1rem;
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 90vw;
}

@media (max-width: 480px) {
  .toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

.toast {
  background: rgba(15, 20, 40, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 10px;
  padding: 15px 20px;
  color: #e0e0e0;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
  animation: slideInRight 0.4s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  border-color: rgba(0, 255, 136, 0.6);
  color: #00ff88;
}

.toast.error {
  border-color: rgba(255, 107, 107, 0.6);
  color: #ff6b6b;
}

.toast.info {
  border-color: rgba(0, 150, 255, 0.6);
  color: #00d4ff;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-top-color: #00ff88;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .header {
    margin-bottom: 30px;
  }

  .form-card {
    padding: 20px;
  }

  .report-form {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .header {
    margin-bottom: 25px;
  }

  .title {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .description {
    font-size: 0.85rem;
  }

  .form-card {
    padding: 15px;
    border-radius: 12px;
  }

  .report-form {
    gap: 18px;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .textarea {
    min-height: 80px;
  }

  .upload-area {
    padding: 15px;
  }

  .upload-icon {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .toast {
    max-width: calc(100vw - 40px);
    font-size: 0.85rem;
    padding: 12px 15px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.form-input:focus-visible,
.toggle-input:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}
