/* My Cameras Dashboard */
.my-cameras-dashboard {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.my-cameras-dashboard.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.dashboard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.dashboard-panel {
  position: relative;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.my-cameras-dashboard.active .dashboard-panel {
  transform: translateX(0);
}

.dashboard-panel.minimized {
  transform: translateX(calc(100% - 50px));
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e8eaed;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #202124;
}

.dashboard-header .close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 24px;
  color: #5f6368;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}

.dashboard-header .close-btn:hover {
  background: #f1f3f4;
}

.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Loading & Error States */
.dashboard-loading,
.dashboard-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #5f6368;
}

/* Actions */
.cameras-actions {
  margin-bottom: 16px;
}

.cameras-actions .btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #333;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.cameras-actions .btn-primary:hover {
  background: #1a1a1a;
}

/* Empty State */
.cameras-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.cameras-empty p {
  margin: 16px 0 4px;
  font-size: 16px;
  color: #3c4043;
}

.cameras-empty span {
  font-size: 14px;
  color: #5f6368;
}

/* Camera Cards */
.cameras-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camera-card {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 16px;
}

.camera-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.camera-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.camera-status.online {
  background: #34a853;
}

.camera-status.offline {
  background: #9aa0a6;
}

.camera-name {
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  flex: 1;
}

.camera-device-id {
  font-size: 12px;
  color: #5f6368;
  font-family: monospace;
}

.camera-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  font-size: 13px;
}

.info-label {
  width: 80px;
  color: #5f6368;
}

.info-value {
  color: #3c4043;
}

.info-value.online {
  color: #34a853;
}

.info-value.offline {
  color: #9aa0a6;
}

.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-record svg circle:last-child {
  fill: #d93025;
}

.btn-record:hover svg circle:last-child {
  fill: #b3261e;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  background: #333;
  color: white;
}

.btn-primary:hover {
  background: #1a1a1a;
}

.btn-secondary {
  background: white;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.btn-secondary:hover {
  background: #f1f3f4;
}

.btn-danger {
  background: #d93025;
  color: white;
}

.btn-danger:hover {
  background: #b3261e;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Claim Modal */
.claim-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.claim-modal.active {
  opacity: 1;
  visibility: visible;
}

.claim-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.claim-modal .modal-content {
  position: relative;
  width: 400px;
  max-width: calc(100% - 32px);
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.claim-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #202124;
}

.claim-modal p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #5f6368;
}

.claim-modal input[type="text"],
.claim-modal input[type="number"],
.claim-modal select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.claim-modal input:focus,
.claim-modal select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #3c4043;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.modal-actions .spacer {
  flex: 1;
}

.claim-error {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fce8e6;
  color: #c5221f;
  border-radius: 4px;
  font-size: 13px;
}

.claim-error:empty {
  display: none;
}

/* Location Pick Instruction */
.pick-location-instruction {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: #323232;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2500;
}

.pick-location-instruction span {
  font-size: 14px;
}

.pick-location-instruction button {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.pick-location-instruction button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
  .dashboard-panel {
    width: 100%;
  }

  .claim-modal .modal-content {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
