/* Google Sheets Integration */
.sheets-indicator {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.sheets-indicator.connected { background: #2ecc71; box-shadow: 0 0 4px #2ecc71; }
.sheets-indicator.disconnected { background: #e74c3c; }
.sheets-indicator.off { background: #888; }
.sheets-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000;
  justify-content: center; align-items: flex-start; padding-top: 80px;
}
.sheets-modal-overlay.show { display: flex; }
.sheets-modal {
  background: white; border-radius: 12px; width: 95%; max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3); overflow: hidden;
}
.sheets-modal-header {
  background: linear-gradient(135deg, #0f9d58, #0b8043); color: white;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
}
.sheets-modal-header h3 { margin: 0; font-size: 16px; }
.sheets-modal-body { padding: 20px; }
.sheets-modal-body label { display: block; font-size: 12px; color: #666; margin-bottom: 4px; text-transform: uppercase; }
.sheets-modal-body input[type=text] {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; margin-bottom: 12px;
}
.sheets-status-box {
  padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.sheets-status-box.ok { background: #e8f5e9; color: #2e7d32; }
.sheets-status-box.err { background: #fbe9e7; color: #c62828; }
.sheets-status-box.off { background: #f5f5f5; color: #666; }
.sheets-toggle {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 10px 14px; background: #f8f9fa; border-radius: 6px;
}
.sheets-toggle label { margin: 0; text-transform: none; font-size: 14px; color: #333; font-weight: 500; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 24px; transition: 0.3s;
}
.switch .slider:before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .slider { background: #0f9d58; }
.switch input:checked + .slider:before { transform: translateX(20px); }
.sheets-btn-row { display: flex; gap: 8px; }
.sheets-btn-row button { flex: 1; }
.sheets-sync-badge {
  position: fixed; bottom: 10px; left: 10px; padding: 5px 12px; border-radius: 16px;
  font-size: 11px; z-index: 9998; display: flex; align-items: center; gap: 6px;
  background: #e8f5e9; color: #2e7d32; opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.sheets-sync-badge.visible { opacity: 1; }