/* Reusable UI components */

/* Logo component */
.logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  margin-bottom: 15px;
  display: block;
  text-align: center;
}

.logo-text {
  color: #ffffff;
}

.logo-r {
  background: linear-gradient(45deg, #ff4444, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 900;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  25% { background-position: 100% 50%; filter: hue-rotate(90deg); }
  50% { background-position: 100% 100%; filter: hue-rotate(180deg); }
  75% { background-position: 0% 100%; filter: hue-rotate(270deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

/* Controls container */
#controls { 
  padding: 10px; 
  background-color: #1c1c1c; 
  border-radius: 8px; 
  margin-bottom: 15px; 
}

/* Service toggles */
#service-toggles { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  margin-top: 10px; 
}

.toggle-container { 
  display: flex; 
  align-items: center; 
  background-color: #2a2a2a; 
  padding: 8px 12px; 
  border-radius: 4px; 
  cursor: pointer; 
}

.toggle-container:hover { 
  background-color: #333; 
}

.toggle-container input[type="checkbox"] { 
  margin-right: 10px; 
  accent-color: #61dafb; 
}

/* Social Media Widget */
.social-media {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 12px;
  background: rgba(15, 15, 15, 0.9);
  padding: 12px 16px;
  border-radius: 25px;
  border: 1px solid #333;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.social-icon.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  border-color: #bc1888;
}

.social-icon.twitter:hover {
  background: #000000;
  border-color: #333;
}

.social-icon span {
  font-weight: 700;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}

/* Auth Widget */
#auth-widget {
  position: fixed;
  top: 20px;
  left: 320px;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.9);
  padding: 12px 16px;
  border-radius: 25px;
  border: 1px solid #333;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.auth-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.auth-user-email {
  color: #61dafb;
  font-weight: 500;
}

.auth-logout-btn {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-logout-btn:hover {
  background: rgba(255, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* Crimecast Button */
.social-icon.crimecast-btn {
  background: rgba(97, 218, 251, 0.1);
  border-color: rgba(97, 218, 251, 0.2);
  width: auto;
  min-width: 120px;
  padding: 0 16px;
  height: 36px;
  border-radius: 18px;
}

.social-icon.crimecast-btn:hover {
  background: #61dafb;
  color: #1a1a1d;
  border-color: #61dafb;
  transform: translateY(-2px) scale(1.05);
}

.crimecast-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0;
}

.crimecast-r {
  background: linear-gradient(45deg, #ff4444, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 900;
}

/* Stats Modal Styling */
.stats-modal-body {
  padding: 0;
}

.stats-city-info {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(97, 218, 251, 0.1), rgba(97, 218, 251, 0.05));
  border-bottom: 1px solid #333;
  text-align: center;
}

.stats-city-info h3 {
  margin: 0 0 0.5rem 0;
  color: #61dafb;
  font-size: 1.4rem;
  font-weight: 600;
}

.stats-city-info p {
  margin: 0;
  color: #c5c6c7;
  font-size: 0.95rem;
}

.report-options {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  width: 100%;
}

.report-option-btn:hover {
  background: rgba(97, 218, 251, 0.1);
  border-color: #61dafb;
  transform: translateY(-2px);
}

.report-option-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.report-option-btn:disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: #333;
}

.report-icon {
  font-size: 2rem;
  min-width: 48px;
  text-align: center;
}

.report-info {
  flex: 1;
}

.report-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f4f4f9;
  margin-bottom: 0.25rem;
}

.report-desc {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.report-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: rgba(63, 185, 80, 0.2);
  color: #3fb950;
  font-weight: 500;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.report-status.unavailable {
  background: rgba(128, 128, 128, 0.2);
  color: #888;
  border-color: rgba(128, 128, 128, 0.3);
}

.loading-message,
.no-reports-message {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #888;
  font-size: 1.1rem;
}

.loading-message {
  color: #61dafb;
}

/* Large Modal for Report Viewer */
.large-modal {
  max-width: 90vw;
  width: 1000px;
  max-height: 90vh;
}

.report-viewer-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.5rem;
}

#report-content {
  color: #f4f4f9;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #61dafb;
  color: #1a1a1d;
}

.btn-primary:hover {
  background-color: #4fc3f7;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}