/* =========================================================================
   Simify Link — shared component styles (source of truth)
   Used by both static/index.html (production redirect) and
   static/design.html (component preview gallery).
   ========================================================================= */

body {
  margin: 0;
  padding: 15px;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #333;
  text-align: center;
}

.spinner {
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2364C2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- iOS-style dialog ---- */

.ios-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ios-confirm-box {
  background: #fff;
  border-radius: 14px;
  width: 280px;
  overflow: hidden;
  text-align: center;
  font-size: 16px;
  color: #111;
}

.ios-confirm-message {
  padding: 20px 15px;
  line-height: 1.4;
}

.ios-confirm-buttons {
  display: flex;
  border-top: 1px solid #ddd;
}

.ios-confirm-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.ios-confirm-btn.cancel {
  color: #007aff;
  font-weight: 500;
  border-right: 1px solid #ddd;
}

.ios-confirm-btn.ok {
  color: #007aff;
  font-weight: 600;
}

.ios-confirm-btn:active {
  background: rgba(0, 0, 0, 0.05);
}

/* ---- Android-style dialog ---- */

.android-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.android-confirm-box {
  background: #fff;
  border-radius: 4px;
  width: 280px;
  max-width: 90%;
  padding: 20px 20px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  color: #222;
}

.android-confirm-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #000;
  text-align: left;
}

.android-confirm-message {
  margin-bottom: 24px;
  text-align: left;
  line-height: 1.4;
  font-size: 14px;
  color: #333;
}

.android-confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.android-confirm-btn {
  border: none;
  background: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
}

.android-confirm-btn.cancel {
  color: #777;
}

.android-confirm-btn.ok {
  color: #1a73e8;
}
