/* ==========================================================================
   GIRI ORBIT — BROWSER SYNC & STORAGE SYSTEM (css/sync.css)
   ========================================================================== */

/* Header Sync Status Pill */
.tier1-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.tier1-sync-pill:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.sync-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 5px;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: syncPulse 2.5s infinite;
}

.sync-dot-live.syncing {
  background: #eab308;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.35);
}

@keyframes syncPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* In-Editor Ribbon Sync Pill */
.fluent-sync-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #4ade80;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.fluent-sync-action-pill:hover {
  background: rgba(22, 163, 74, 0.25);
  border-color: #22c55e;
  color: #ffffff;
}

/* Pick Up Where You Left Off Hub Banner */
.tool-resume-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px 20px;
  margin: 0 auto 24px auto;
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.3s ease;
}

.tool-resume-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-resume-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.tool-resume-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 2px;
}

.tool-resume-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.tool-resume-meta {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.tool-resume-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-resume-work {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-resume-work:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-delete-saved-work {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-delete-saved-work:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #b91c1c;
}

/* Synced Work Cards in Landing Hub */
.recent-doc-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recent-doc-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.recent-doc-delete-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.18s ease;
}

.recent-doc-delete-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Browser Sync & Storage Manager Modal Dialog */
.sync-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sync-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.sync-modal-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  width: 90vw;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sync-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}

.sync-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.sync-modal-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.sync-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.sync-storage-overview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sync-meter-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.sync-meter-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.sync-storage-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sync-item-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.18s ease;
}

.sync-item-row:hover {
  border-color: #cbd5e1;
}

.sync-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-tool-badge {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.sync-tool-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.sync-tool-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.sync-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sync-open {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sync-open:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-sync-delete {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sync-delete:hover {
  background: #dc2626;
  color: #ffffff;
}

.sync-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}

.btn-clear-all-sync {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.btn-clear-all-sync:hover {
  background: #fee2e2;
}

.btn-close-sync-modal {
  background: #0f172a;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-close-sync-modal:hover {
  background: #1e293b;
}
