body {
  background: #1f2329 !important;
  color: #f8f9fa;
}

.card {
  background: #2b3138;
  color: #f8f9fa;
}

.form-control,
.form-select {
  background: #11161c;
  color: #f8f9fa;
  border-color: #495057;
}

.form-control:focus,
.form-select:focus {
  background: #11161c;
  color: #f8f9fa;
  border-color: #86b7fe;
  box-shadow: none;
}

.text-muted {
  color: #adb5bd !important;
}

.alert {
  border-radius: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #2b3138;
  border: 1px solid #3c434d;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16/9;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  color: inherit;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: #11161c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86b7fe;
  font-weight: bold;
  font-size: 1.2rem;
}

.geofence-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffc107;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.gallery-item .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 12px;
  z-index: 1;
}

.gallery-item .title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #fff;
}

.gallery-item .desc {
  font-size: 0.75rem;
  color: #adb5bd;
}

.loading-box {
  background: #2b3138;
  color: #fff;
  border: 1px solid #495057;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: center;
}
