/* Security overlay styles */
#securityOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.pin-container {
  background: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
}

.pin-container h2 {
  margin-top: 0;
  color: #333;
  font-size: 1.5em;
}

.pin-input {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: 1.5em 0;
}

.pin-digit {
  width: 40px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: #f8f9fa;
}

.pin-digit:focus {
  border-color: #007bff;
  outline: none;
  background: white;
}

.pin-error {
  color: #dc3545;
  margin: 1em 0;
  font-weight: bold;
}

.pin-success {
  color: #28a745;
  margin: 1em 0;
  font-weight: bold;
}

.pin-submit {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.8em 2em;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 1em;
}

.pin-submit:hover {
  background: #0056b3;
}

.pin-submit:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Security indicator */
.security-indicator {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1000;
}

.security-indicator.warning {
  background: #ffc107;
  color: #333;
}

.security-indicator.locked {
  background: #dc3545;
}

/* Super Admin Styles */
.super-admin-warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 6px;
  padding: 1em;
  margin-bottom: 1.5em;
  text-align: center;
}

.super-admin-warning p {
  margin: 0.5em 0;
  color: #856404;
}

.super-admin-content {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1.5em;
}

.super-admin-content ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

.super-admin-content li {
  margin-bottom: 0.5em;
  color: #495057;
}

.danger-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin: 1em 0.5em 0 0;
}

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

.cancel-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin: 1em 0.5em 0 0;
}

.cancel-btn:hover {
  background: #5a6268;
}

/* PIN Modal */
.pin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.pin-modal-content {
  background: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 350px;
  border: 3px solid #dc3545;
}

.pin-modal-content h3 {
  margin-top: 0;
  color: #dc3545;
}

.modal-buttons {
  margin-top: 1.5em;
}
