.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.auth-form {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.auth-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
}

.auth-button:hover {
  background-color: #2980b9;
}

.auth-error {
  color: #e74c3c;
  margin-top: 1rem;
  text-align: center;
}

.admin-portal {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 1rem;
}

.admin-title {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.admin-subtitle {
  color: #7f8c8d;
  margin-bottom: 0;
}

.admin-tabs {
  margin-bottom: 1rem;
}

.admin-tab-content {
  padding: 1.5rem 0;
  min-height: 400px;
}

.dashboard-stat-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: transform 0.2s;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
}

.dashboard-stat-card .display-4 {
  color: #3498db;
  font-weight: 700;
}

.table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding: 0.75rem;
}

.table td {
  padding: 0.75rem;
  vertical-align: middle;
}

.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

.nav-tabs .nav-link {
  color: #7f8c8d;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link.active {
  color: #3498db;
  font-weight: 600;
  border-bottom: 3px solid #3498db;
}

.admin-action-result {
  margin-top: 1rem;
}

.btn {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.admin-clickable-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.admin-clickable-row:hover {
  background-color: #e8f4fd !important;
}

.admin-clickable-row:active {
  background-color: #d0e8f7 !important;
}

.admin-edit-btn {
  opacity: 0.4;
  border: none;
  padding: 0.25rem 0.5rem;
  transition: opacity 0.15s ease;
}

.admin-clickable-row:hover .admin-edit-btn {
  opacity: 1;
}

.admin-edit-btn:hover {
  opacity: 1 !important;
  background-color: #e9ecef !important;
}

@media (max-width: 768px) {
  .admin-portal {
    padding: 1rem;
  }

  .admin-tab-content {
    padding: 1rem 0;
  }

  .dashboard-stat-card .display-4 {
    font-size: 2rem;
  }

  .table {
    font-size: 0.85rem;
  }
}

.floorplan-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px;
  cursor: crosshair;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
}

.floorplan-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.floorplan-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: auto;
  text-align: center;
}

.floorplan-pin-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin: 0 auto;
}

.floorplan-pin-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #333;
  background: rgba(255,255,255,0.85);
  padding: 2px 5px;
  border-radius: 3px;
  margin-top: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.floorplan-pin {
  cursor: pointer;
}

.floorplan-pin:hover .floorplan-pin-dot {
  transform: scale(1.3);
  transition: transform 0.15s;
}

.floorplan-pin:hover .floorplan-pin-label {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.floorplan-pin-selected .floorplan-pin-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.5), 0 1px 4px rgba(0,0,0,0.4);
}

.floorplan-pin-selected .floorplan-pin-label {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.results-floorplan .floorplan-container {
  cursor: default;
}

.results-floorplan .floorplan-pin {
  cursor: default;
}

.results-floorplan .floorplan-pin:hover .floorplan-pin-dot {
  transform: none;
}

.floorplan-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #dc3545;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
  animation: pulse-ring 1s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(220,53,69,0.4); }
  100% { box-shadow: 0 0 0 10px rgba(220,53,69,0); }
}
